Module messaging

Module messaging 

Source
Expand description

L1↔L2 messaging types and utilities.

Mirrors upstream:

  • stdlib/src/messaging/l1_actor.ts
  • stdlib/src/messaging/l2_actor.ts
  • stdlib/src/messaging/l1_to_l2_message.ts

Structs§

L1Actor
An actor on L1 (Ethereum), identified by an Eth address and chain ID.
L1ToL2Message
A message sent from L1 to L2 via the Inbox contract.
L2Actor
An actor on L2 (Aztec), identified by an Aztec address and protocol version.
L2AmountClaim
Claim information including the bridged amount.
L2AmountClaimWithRecipient
Claim information including amount and recipient.
L2Claim
Information needed to claim tokens bridged from L1 to L2.

Functions§

generate_claim_secret
Generate a random claim secret and its hash.