pub struct DerivedPubkey { /* private fields */ }
Expand description

A Pubkey with its derivation. Primarily used by PSBT.

Implementations

Get the sec1 representation of the public key

Instantiate a new DerivedPubkey

Return the hash of the compressed (Sec1) pubkey.

The fingerprint is the first 4 bytes of the HASH160 of the serialized public key.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.

Formats the value using the given formatter. Read more

Return this key’s derivation

true if the keys share a root fingerprint, false otherwise. Note that on key fingerprints, which may collide accidentally, or be intentionally collided. Read more

true if this key is a possible ancestor of the argument, false otherwise. Read more

Returns the path to the descendant, or None if the argument is definitely not a descendant. Read more

Verify the signature against the given Digest output.

Verify the signature against the given Digest output.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.