Expand description
§silent-payments-core
Core primitives for BIP 352 Silent Payments: error types, key newtypes with zeroization, address encoding, input classification, and cryptographic safety wrappers.
This crate provides type-safe wrappers around bdk-sp with explicit
error handling, zeroized secret key storage, and SEC-04 compliance
(all EC operations via bitcoin::secp256k1).
§Main types
SpAddress– BIP 352 Silent Payment address (parse, encode, construct)ScanPublicKey/ScanSecretKey– receiver’s scan key pairSpendPublicKey/SpendSecretKey– receiver’s spend key pairClassifiedInput/SpInputType– transaction input classificationcompute_shared_secret,compute_output_pubkey– ECDH and output derivation
Re-exports§
pub use address::SpAddress;pub use crypto::compute_input_hash;pub use crypto::compute_output_pubkey;pub use crypto::get_label_tweak;pub use error::AddressError;pub use error::CryptoError;pub use error::InputError;pub use input::classify_input;pub use input::collect_eligible_inputs;pub use input::ClassifiedInput;pub use input::SpInputType;pub use keys::ScanPublicKey;pub use keys::ScanSecretKey;pub use keys::SpendPublicKey;pub use keys::SpendSecretKey;
Modules§
- address
- BIP 352 Silent Payment address parsing, encoding, and construction.
- crypto
- Cryptographic safety wrappers for BIP 352 Silent Payments.
- error
- Per-domain error enums for Silent Payments operations.
- input
- Transaction input classification and public key extraction for BIP 352.
- keys
- Newtype wrappers for Silent Payments key types.
- prelude
- Common types and traits for convenient glob imports.