Contract for storing keyed encrypted messages via the EVM.
This contract uses topic hashes as keys and can store a single arbitrary encrypted message per topic at any given time. Technically, topic hashes and messages do not need to be encrypted, but because anyone can read stored messages, this contract is designed to store encrypted messages. Only one message per topic is stored at any given time.
Gets the current stored message corresponding to
To decrypt messages (this requires access to the owner’s private keys), use the decryptMessage() function in common/Crypto.js.
user: address that stored this message.
topicHash: hash of the "subject" of the message.
message categorized by a particular
topicHash. This will overwrite the
previous messages sent by this caller with this
To construct an encrypted message, use the encryptMessage() in common/Crypto.js.
topicHash: hash of the "subject" or "topic" of the message.
message: the stored message.