pub trait PrivateKeysProvider {
// Required method
fn private_keys(&self) -> PrivateKeys;
}Expand description
A trait for types that can provide a complete set of private cryptographic keys.
Types implementing this trait can be used as a source of PrivateKeys,
which contain both signing and encryption private keys. This trait is
particularly useful for key management systems, wallets, or other components
that need to generate or access cryptographic key material.
§Examples
ⓘ
use bc_components::{PrivateKeyBase, PrivateKeysProvider};
// Create a provider of private keys
let key_base = PrivateKeyBase::new();
// Get the private keys from the provider
let private_keys = key_base.private_keys();Required Methods§
Sourcefn private_keys(&self) -> PrivateKeys
fn private_keys(&self) -> PrivateKeys
Returns a complete set of private keys for cryptographic operations.
The returned PrivateKeys instance contains both signing and encryption
private keys that can be used for various cryptographic operations.
§Returns
A PrivateKeys instance containing the complete set of private keys.
Implementors§
impl PrivateKeysProvider for PrivateKeyBase
Available on crate feature
secp256k1 only.