EEVM.Transaction.Authorization (eevm v0.1.0)

Copy Markdown View Source

EIP-7702 authorization tuple: the account that signs it (its authority, see EEVM.Transaction.Signer.recover_authority/1) lets address's code run as its own.

FieldDescription
chain_idChain the authorization is valid on; 0 for any chain
addressAddress whose code the authority delegates to
nonceThe authority's account nonce
y_parity, r, sThe authority's secp256k1 signature

y_parity is a full byte on the wire; values other than 0 or 1 make the authorization unrecoverable, so it is skipped rather than rejected.

Summary

Types

t()

@type t() :: %EEVM.Transaction.Authorization{
  address: EEVM.Transaction.address(),
  chain_id: non_neg_integer(),
  nonce: non_neg_integer(),
  r: non_neg_integer(),
  s: non_neg_integer(),
  y_parity: 0..255
}