WIP update

Finished moving Packet over to implicit sharing.
This commit is contained in:
attermann committed 2023-10-09 09:39:11 -06:00
1 parent 59b8e90d1f
commit 2c8006f3a9
5 files changed
+167 -160

No files matched your search

+2 -2
View File
@@ -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) {