Skip to main content
Authorization (AuthorizationType) represents a signed EIP-7702 authorization tuple { chainId, address, nonce, yParity, r, s } that delegates an externally owned account’s code to a smart contract address during a Type 0x04 transaction.

Signing Preimage & Constants

The signing digest is keccak256(0x05 || rlp([chainId, address, nonce])). Setting chainId = 0n authorizes delegation across all EVM chains (cross-chain replayable).

Quick Start

Import from @tevm/voltaire or @tevm/voltaire/Authorization.

API Reference

Tree-shakeable dependency-injected factories: Authorization.Hash, Authorization.Sign, and Authorization.Verify.

Validation Rules

  • s must satisfy 0 < s <= SECP256K1_HALF_N (strict EIP-2 low-s; high-s signatures are rejected).
  • yParity must be 0 or 1.
  • Delegating to Address.zero() clears an existing EOA delegation indicator (0xef0100 || address).
  • Transaction — Type 0x04 EIP-7702 transactions
  • Signature — secp256k1 signature encoding and low-s normalization
  • RLP — Tuple serialization