Skip to content
Solana Keychain provides a unified interface for signing Solana transactions across multiple key management backends. Develop locally with an in-memory key, then switch to enterprise key management, cloud HSMs, or managed wallet services in production, without rewriting your signing code.

​Why Keychain?

  • Single Interface: One SolanaSigner base interface across all backends, plus one capability per backend: sign, rewrite-and-sign, or sign-and-broadcast
  • Swap Backends: Change key management providers through configuration; call sites only change when the new backend has a different capability (Crossmint and Fordefi native modes)
  • Pay for what you use: Rust feature flags, per-backend npm packages, Python extras and per-backend Go modules include only the backends you need
  • Audited: Rust, TypeScript, Python, and Go audited by OtterSec (the opt-in Ledger backend was out of scope); an earlier Accretion audit covered Rust and TypeScript. See audit status.

​Architecture

  • Languages: Rust, TypeScript, Python, and Go, at parity (the Ledger backend is Rust-only)
  • Interface: SolanaSigner base (pubkey, sign_message, is_available) plus exactly one capability per backend: TransactionSigner, ModifyingSigner, or SendingSigner
  • Backends: Memory, Vault, AWS KMS, GCP KMS, Privy, Turnkey, Fireblocks, CDP, Crossmint, Dfns, Openfort, Para, Utila, Fordefi, Ledger (Rust only, opt-in, unaudited)
  • Compatibility: @solana/kit and @solana/signers 8.1+ (TypeScript) | solana-sdk 2.x, 3.x, or 4.x via the sdk-v2 / sdk-v3 / sdk-v4 features (Rust; v1 transactions need sdk-v4) | solders (Python) | solana-go v2 (Go)

​Supported Backends

Backends span local development, self-hosted and cloud key management, and managed or MPC wallet services. See Choosing a backend to compare custody models and pick the right one.
BackendUse CaseRustTypeScriptPythonGo
MemoryDevelopment, testing✓✓✓✓
HashiCorp VaultSelf-hosted key management✓✓✓✓
AWS KMSCloud-native (AWS)✓✓✓✓
GCP KMSCloud-native (GCP)✓✓✓✓
PrivyEmbedded wallets✓✓✓✓
TurnkeyNon-custodial key management✓✓✓✓
FireblocksInstitutional custody✓✓✓✓
CDPCoinbase Developer Platform✓✓✓✓
CrossmintCrossmint managed wallets✓✓✓✓
DfnsDfns wallet infrastructure✓✓✓✓
OpenfortOpenfort backend wallets✓✓✓✓
ParaPara MPC wallets✓✓✓✓
UtilaUtila MPC custody✓✓✓✓
FordefiFordefi MPC custody✓✓✓✓
LedgerHardware wallet (opt-in, unaudited)✓

​Quick Start

​Rust

Install the Rust crate:
Basic usage:

​TypeScript

Install the TypeScript package:
Basic usage:
To install a Keychain signer on a Kit client as its payer or identity, use @solana/keychain-kit-plugin (Crossmint and Fordefi native modes are excluded, since they rewrite transactions).

​Python

Install the package (heavier backends ship as extras, for example solana-keychain[aws-kms]):
Basic usage:
  • Python Guide - Full installation, extras, and backend configuration
  • PyPI - Python package

​Go

Each backend is its own Go module, so you only pull the backends you import:
Basic usage:

​Next steps

​Source

Built and maintained by the Solana Foundation. Licensed under MIT.