Contracts
Contract Interfaces
IERC5564Announcer.sol

IERC5564Announcer

Interface for calling the ERC5564Announcer contract, which emits an Announcement event to broadcast information about a transaction involving a stealth address. See ERC-5564 (opens in a new tab) to learn more.

Code: IERC5564Announcer.sol (opens in a new tab)

Functions

announce

function announce(
  uint256 schemeId,
  address stealthAddress,
  bytes memory ephemeralPubKey,
  bytes memory metadata
) external

Called by integrators to emit an Announcement event.

Parameters:

TypeNameDescription
uint256schemeIdIdentifier corresponding to the applied stealth address scheme, e.g., 1 for secp256k1, as specified in ERC-5564 (opens in a new tab).
addressstealthAddressThe computed stealth address for the recipient.
bytesephemeralPubKeyEphemeral public key used by the sender.
bytesmetadataArbitrary data to emit with the event. The first byte MUST be the view tag. The remaining metadata can be used freely by the senders.

Events

Announcement

event Announcement(
  uint256 indexed schemeId,
  address indexed stealthAddress,
  address indexed caller,
  bytes ephemeralPubKey,
  bytes metadata
);

Emitted when something is sent to a stealth address.

Parameters:

TypeNameDescription
uint256schemeIdIdentifier corresponding to the applied stealth address scheme, e.g., 1 for secp256k1, as specified in ERC-5564 (opens in a new tab).
addressstealthAddressThe computed stealth address for the recipient.
addresscallerThe caller of the announce function that emitted this event.
bytesephemeralPubKeyEphemeral public key used by the sender to derive the stealthAddress.
bytesmetadataArbitrary data to emit with the event. The first byte MUST be the view tag. The remaining metadata can be used by the senders as they like. See ERC-5564 (opens in a new tab) for recommendations on how to structure this metadata.