Struct psbt::sign::MemorySigningAccount [−][src]
pub struct MemorySigningAccount { /* fields omitted */ }
Expand description
Account-specific extended private key, kept in memory with information about account path derivation from the master key.
Accounts are uniquially identified by a XpubIdentifier
generated from
an extended public key corresponding to the account-level extended private
key (i.e. not master extended key, but a key at account-level derivation
path).
Implementations
Method borrowing MemorySigningAccount::master_id
field.
Method borrowing MemorySigningAccount::derivation
field.
Method borrowing MemorySigningAccount::account_xpriv
field.
Method borrowing MemorySigningAccount::account_xpub
field.
pub fn with<C: Signing>(
secp: &Secp256k1<C>,
master_id: XpubIdentifier,
derivation: DerivationPath,
account_xpriv: ExtendedPrivKey
) -> MemorySigningAccount
pub fn derive_seckey<C: Signing>(
&self,
secp: &Secp256k1<C>,
derivation: &DerivationPath
) -> SecretKey
pub fn derive_keypair<C: Signing>(
&self,
secp: &Secp256k1<C>,
derivation: &DerivationPath
) -> KeyPair
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for MemorySigningAccount
impl Send for MemorySigningAccount
impl Sync for MemorySigningAccount
impl Unpin for MemorySigningAccount
impl UnwindSafe for MemorySigningAccount
Blanket Implementations
Mutably borrows from an owned value. Read more