mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 23:36:00 -04:00
Add comment about check allowed public keys for adding received message
This commit is contained in:
parent
e8d289f577
commit
7a7b33fc76
@ -433,6 +433,8 @@ public class P2PDataStorage implements MessageListener, ConnectionListener {
|
||||
return checkSignature(protectedStorageEntry.ownerPubKey, hashOfDataAndSeqNr, protectedStorageEntry.signature);
|
||||
}
|
||||
|
||||
// Check that the pubkey of the storage entry matches the allowed pubkey for the addition or removal operation
|
||||
// in the contained mailbox message, or the pubkey of other kinds of messages.
|
||||
private boolean checkPublicKeys(ProtectedStorageEntry protectedStorageEntry, boolean isAddOperation) {
|
||||
boolean result;
|
||||
if (protectedStorageEntry.getStoragePayload() instanceof MailboxStoragePayload) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user