mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 13:52:14 +00:00
WIP update
Finished moving Packet over to implicit sharing.
This commit is contained in:
1 parent
59b8e90d1f
commit
2c8006f3a9
5 files changed
+167
-160
No files matched your search
+2
-2
@@ -190,13 +190,13 @@ bool Identity::validate(const Bytes &signature, const Bytes &message) {
|
||||
|
||||
void Identity::prove(const Packet &packet, const Destination &destination /*= Destination::NONE*/) {
|
||||
assert(_object);
|
||||
Bytes signature(sign(packet._packet_hash));
|
||||
Bytes signature(sign(packet.packet_hash()));
|
||||
Bytes proof_data;
|
||||
if (RNS::Reticulum::should_use_implicit_proof()) {
|
||||
proof_data = signature;
|
||||
}
|
||||
else {
|
||||
proof_data = packet._packet_hash + signature;
|
||||
proof_data = packet.packet_hash() + signature;
|
||||
}
|
||||
|
||||
//zif (!destination) {
|
||||
|
||||
Reference in new issue
Block a user