Skip to content

Accounts

Tempo.ts provides Viem-compatible Local Accounts that support multiple signature schemes including secp256k1, P256, and WebAuthn (passkeys).

These accounts are fully backwards compatible with Viem APIs, meaning you can use them any Viem Action that accepts an account.

Account Types

TypeDescription
fromSecp256k1Create an account from a secp256k1 private key (standard Ethereum accounts)
fromWebAuthnP256Create an account from a WebAuthn credential (passkeys)
fromWebCryptoP256Create an account from a WebCrypto P256 key pair
fromP256Create an account from a P256 private key