web3wagmi
← All standards

ERC-7627 Secure Messaging Protocol

FinalERCcreated 2024-02-19

End-to-end encryption for sending messages between users.

Author: Chen Liaoyuan (@chenly)

ERC-165 interface ids

Computed here as the XOR of the selectors each interface defines.

IERC76270xe152b8ef

Functions this standard introduces (3)

0x0c61a0ffgetUserPublicKey(address,bytes32)view
0xe7e7f49dsendMessage(address,bytes32,bytes32,bytes)
0x0ad4ec8dupdatePublicKey(bytes32,(bytes,uint64,uint8))

Events (2)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0x27af5dcf5445f3e2e631b63fd30868562afc698c58293bb9073c16bd81a83ae9MessageSent(address,address,bytes32,bytes32,bytes)
0x0429ab86acc69c0273164373c5eb5e932715820f5dbee490dcdc575e29251ff7PublicKeyUpdated(address,bytes32,(bytes,uint64,uint8))

What the specification covers

Compare with

Parsed from the canonical specification · discussion