Add comment about check allowed public keys for adding received message

This commit is contained in:
Ivan Vilata-i-Balaguer 2016-04-14 11:02:50 +02:00
parent e8d289f577
commit 7a7b33fc76

View File

@ -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) {