remove swap from dhtlog

This commit is contained in:
Christien Rioux 2025-06-02 16:10:19 -04:00
parent d1559c949d
commit b192c44d5c
5 changed files with 7 additions and 59 deletions

View file

@ -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');