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
| Type | Description |
|---|---|
fromSecp256k1 | Create an account from a secp256k1 private key (standard Ethereum accounts) |
fromWebAuthnP256 | Create an account from a WebAuthn credential (passkeys) |
fromWebCryptoP256 | Create an account from a WebCrypto P256 key pair |
fromP256 | Create an account from a P256 private key |