Expand description
Sovereign key management for Nostr and Bitcoin.
This crate provides encrypted key storage with the following features:
- Encrypted storage using Redb with XChaCha20-Poly1305
- Key derivation using Argon2id with configurable parameters
- Nostr keypair management with nsec/npub support
- FROST threshold signatures for distributed key management
- Hidden volumes for plausible deniability
§Example
use std::path::Path;
use keep_core::Keep;
// Create a new Keep
let mut keep = Keep::create(Path::new("/tmp/my-keep"), "password")?;
// Generate a new key
let pubkey = keep.generate_key("my-key")?;
// Lock when done
keep.lock();Re-exports§
pub use crate::relay::PeerPolicyEntry;pub use crate::relay::RelayConfig;pub use crate::relay::GLOBAL_RELAY_KEY;pub use crate::storage::ProxyConfig;pub use crate::storage::ReplicatedApply;pub use crate::storage::StatePublisher;pub use crate::wallet::DeviceRegistration;pub use crate::wallet::WalletDescriptor;
Modules§
- audit
- Tamper-evident audit logging with hash chain integrity. Tamper-evident audit logging with hash chain integrity.
- backend
- Pluggable storage backends. Pluggable storage backends for encrypted key storage.
- backup
- Portable encrypted vault backup and restore. Portable encrypted vault backup and restore.
- crypto
- Cryptographic primitives for encryption, key derivation, and hashing. Cryptographic primitives for key derivation, encryption, and hashing.
- descriptor
- Shared text-level helpers for output descriptor strings. Shared text-level helpers for output descriptor strings.
- display
- Display formatting helpers for truncation and timestamps.
- entropy
- Multi-source entropy mixing for defense-in-depth randomness. Multi-source entropy mixing for defense-in-depth randomness.
- error
- Error types and result aliases. Error types for keep-core operations.
- frost
- FROST threshold signature implementation. FROST threshold signature implementation.
- frost_
bip32 - BIP-32 unhardened child-key primitives for FROST group keys (#487). BIP-32 child-key primitives for FROST group keys (#487, PR 1 of 4).
- hidden
- Hidden volume storage for plausible deniability. Hidden volume support for plausible deniability.
- keyring
- In-memory keyring for unlocked keys. In-memory keyring for managing unlocked keys.
- keys
- Key types and Nostr keypair operations. Key types and Nostr keypair operations.
- migration
- Database schema versioning and migrations.
- mnemonic
- BIP-39 mnemonic generation and validation.
- nip06
- NIP-06 key derivation from mnemonic seed phrase.
- relay
- Relay configuration for FROST shares.
- secret
- Arbitrary-secret records (passwords, API tokens, notes) stored in the vault. Arbitrary-secret records (passwords, API tokens, notes) stored in the vault alongside curve-key records.
- storage
- Persistent encrypted storage backend. Persistent encrypted storage backend.
- vault
- Ephemeral time-limited secret vault.
- wallet
- Wallet descriptor types for FROST group spending policies.
Structs§
- Keep
- The main Keep type for encrypted key management.
Functions§
- default_
keep_ path - Returns the default path to the Keep directory (~/.keep).
Override with the
KEEP_HOMEenvironment variable.