mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-10 23:20:19 -04:00
remove swap from dhtlog
This commit is contained in:
parent
d1559c949d
commit
b192c44d5c
5 changed files with 7 additions and 59 deletions
|
@ -47,6 +47,11 @@ class MessageIntegrity {
|
|||
message.signature = signature.toProto();
|
||||
}
|
||||
|
||||
// XXX: change bool to an enum to allow for reconciling deleted
|
||||
// XXX: messages. if a message is deleted it will not verify, but its
|
||||
// XXX: signature will still be in place for the message chain.
|
||||
// XXX: it should be added to a list to check for a ControlDelete that
|
||||
// XXX: appears later in the message log.
|
||||
Future<bool> verifyMessage(proto.Message message) {
|
||||
// Ensure the message is signed
|
||||
assert(message.hasSignature(), 'should not verify unsigned message');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue