mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-29 01:38:39 -04:00
Add comment about check allowed public keys for adding received message
This commit is contained in:
parent
e8d289f577
commit
7a7b33fc76
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue