Why Keychain?
- Single Interface: One
SolanaSignerbase 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:
SolanaSignerbase (pubkey,sign_message,is_available) plus exactly one capability per backend:TransactionSigner,ModifyingSigner, orSendingSigner - 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/kitand@solana/signers8.1+ (TypeScript) |solana-sdk2.x, 3.x, or 4.x via thesdk-v2/sdk-v3/sdk-v4features (Rust; v1 transactions needsdk-v4) |solders(Python) |solana-gov2 (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.| Backend | Use Case | Rust | TypeScript | Python | Go |
|---|---|---|---|---|---|
| Memory | Development, testing | ✓ | ✓ | ✓ | ✓ |
| HashiCorp Vault | Self-hosted key management | ✓ | ✓ | ✓ | ✓ |
| AWS KMS | Cloud-native (AWS) | ✓ | ✓ | ✓ | ✓ |
| GCP KMS | Cloud-native (GCP) | ✓ | ✓ | ✓ | ✓ |
| Privy | Embedded wallets | ✓ | ✓ | ✓ | ✓ |
| Turnkey | Non-custodial key management | ✓ | ✓ | ✓ | ✓ |
| Fireblocks | Institutional custody | ✓ | ✓ | ✓ | ✓ |
| CDP | Coinbase Developer Platform | ✓ | ✓ | ✓ | ✓ |
| Crossmint | Crossmint managed wallets | ✓ | ✓ | ✓ | ✓ |
| Dfns | Dfns wallet infrastructure | ✓ | ✓ | ✓ | ✓ |
| Openfort | Openfort backend wallets | ✓ | ✓ | ✓ | ✓ |
| Para | Para MPC wallets | ✓ | ✓ | ✓ | ✓ |
| Utila | Utila MPC custody | ✓ | ✓ | ✓ | ✓ |
| Fordefi | Fordefi MPC custody | ✓ | ✓ | ✓ | ✓ |
| Ledger | Hardware wallet (opt-in, unaudited) | ✓ |
Quick Start
Rust
Install the Rust crate:- Rust Guide - Full installation and backend configuration
- Crates.io - Rust crate
TypeScript
Install the TypeScript package:- TypeScript Guide -
@solana/keychainpackages - npm Package - npm package
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 examplesolana-keychain[aws-kms]):
- 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:- Go Guide - Modules, capabilities and backend configuration
- pkg.go.dev - Go reference
Next steps
Rust guide
Install the crate and configure each backend.
TypeScript guide
Install the packages and configure each backend.
Python guide
Install the package and its extras, and configure each backend.
Go guide
Add the per-backend modules and configure each backend.
Choosing a backend
Compare custody models and pick the right signing backend.
Production best practices
Operate signing safely: hot/cold separation, rotation, monitoring.
Adding custom signers
Integrate a new key management backend.