mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 13:52:14 +00:00
WIP: More porting and work on persistence
Ported packet PROOFs. Implemented Transport probe destination. SPIFFs filesystem checks and formatting when necessary.
This commit is contained in:
1 parent
7aac0f4355
commit
03cfb1c03f
15 files changed
+392
-118
No files matched your search
+13
-6
@@ -585,17 +585,24 @@ void Identity::prove(const Packet& packet, const Destination& destination /*= {T
|
||||
Bytes proof_data;
|
||||
if (RNS::Reticulum::should_use_implicit_proof()) {
|
||||
proof_data = signature;
|
||||
extreme("Identity::prove: implicit proof data: " + proof_data.toHex());
|
||||
}
|
||||
else {
|
||||
proof_data = packet.packet_hash() + signature;
|
||||
extreme("Identity::prove: explicit proof data: " + proof_data.toHex());
|
||||
}
|
||||
|
||||
//z if (!destination) {
|
||||
//z destination = packet.generate_proof_destination();
|
||||
//z }
|
||||
|
||||
Packet proof(destination, packet.receiving_interface(), proof_data, Type::Packet::PROOF);
|
||||
proof.send();
|
||||
if (!destination) {
|
||||
extreme("Identity::prove: proving packet with proof destination...");
|
||||
ProofDestination proof_destination = packet.generate_proof_destination();
|
||||
Packet proof(proof_destination, packet.receiving_interface(), proof_data, Type::Packet::PROOF);
|
||||
proof.send();
|
||||
}
|
||||
else {
|
||||
extreme("Identity::prove: proving packet with specified destination...");
|
||||
Packet proof(destination, packet.receiving_interface(), proof_data, Type::Packet::PROOF);
|
||||
proof.send();
|
||||
}
|
||||
}
|
||||
|
||||
void Identity::prove(const Packet& packet) const {
|
||||
|
||||
Reference in new issue
Block a user