API reference
Passkeys
Section titled “Passkeys”- createPasskeyWithPrfOutput: creates a passkey and returns its deterministic PRF output in one call.
- getPasskeyPrfOutput: requests a passkey PRF evaluation and returns the deterministic output.
Signing sessions
Section titled “Signing sessions”- createSecp256k1SigningSession: creates a signing session from a secp256k1 private key.
- Secp256k1SigningSession: the returned session.
- createEd25519SigningSession: creates a signing session from an Ed25519 private key.
- Ed25519SigningSession: the returned session.
- toViemAccount: adapts a secp256k1 signing session into a viem local account.
Secret vault
Section titled “Secret vault”- createSecretVaultWithNewPasskey: creates a passkey and encrypts one secret with a fresh random salt.
- createSecretVaultWithExistingPasskey: encrypts another secret with an existing passkey and a fresh random salt.
- decryptSecretVaultWithPasskey: performs the passkey assertion and decrypts a vault.
- parseSecretVault: parses and validates untrusted vault JSON or objects.
- Secret vault format: the v1 storage contract, field by field.
Addresses
Section titled “Addresses”- getEvmAddress: derives the EIP-55 checksummed EVM address for a secp256k1 public key.
- getSolanaAddress: derives the base58-encoded Solana address for an Ed25519 public key.
Errors
Section titled “Errors”- Errors: every error the library throws and its stable code.