AuthorizationTempo
Utilities for Tempo-flavoured EIP-7702 authorizations.
Tempo extends EIP-7702 to support more signature types (secp256k1, P256, and WebAuthn), enabling passkey-based account delegation. Authorizations delegate an account to a specified implementation contract.
Tempo Authorization Specification
Examples
import { Secp256k1 } from 'ox'
import { AuthorizationTempo } from 'ox/tempo'
const authorization = AuthorizationTempo.from({
address: '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',
chainId: 1,
nonce: 40n,
})
const payload = AuthorizationTempo.getSignPayload(authorization)
const signature = Secp256k1.sign({ payload, privateKey: '0x...' })
const authorization_signed = AuthorizationTempo.from(
authorization,
{ signature }
)Functions
Types
| Name | Description |
|---|---|
AuthorizationTempo.AuthorizationTempo | Root type for a Tempo Authorization. |
AuthorizationTempo.List | List of AuthorizationTempo.AuthorizationTempo. |
AuthorizationTempo.ListRpc | RPC representation of a list of AA Authorizations. |
AuthorizationTempo.ListSigned | Signed representation of a list of AA Authorizations. |
AuthorizationTempo.Rpc | RPC representation of an AuthorizationTempo.AuthorizationTempo. |
AuthorizationTempo.Signed | Signed representation of an AA Authorization. |
AuthorizationTempo.Tuple | Tuple representation of an AA Authorization. |
AuthorizationTempo.TupleList | Tuple representation of a list of AuthorizationTempo.AuthorizationTempo. |
AuthorizationTempo.TupleListSigned | Tuple representation of a list of signed AuthorizationTempo.AuthorizationTempo. |
AuthorizationTempo.TupleSigned | Tuple representation of a signed AuthorizationTempo.AuthorizationTempo. |

