Struct psbt::sign::MemoryKeyProvider [−][src]
pub struct MemoryKeyProvider<'secp, C> where
C: Signing, { /* fields omitted */ }
Expand description
Provider of signing keys which uses memory storage for extended account-specific private keys.
Implementations
Trait Implementations
type Item = &'secp MemorySigningAccount
type Item = &'secp MemorySigningAccount
The type of the elements being iterated over.
type IntoIter = Iter<'secp, MemorySigningAccount>
type IntoIter = Iter<'secp, MemorySigningAccount>
Which kind of iterator are we turning this into?
Returns [Secp256k1
] context object used by the provider
fn secret_key(
&self,
fingerprint: Fingerprint,
derivation: &DerivationPath,
pubkey: PublicKey
) -> Result<SecretKey, SecretProviderError>
fn secret_key(
&self,
fingerprint: Fingerprint,
derivation: &DerivationPath,
pubkey: PublicKey
) -> Result<SecretKey, SecretProviderError>
Returns secret key matching provided public key by iterating over all extended private keys having the provided fingerprint. Read more