pub struct TapDerivation {
pub leaf_hashes: Vec<TapLeafHash>,
pub origin: KeyOrigin,
}
Expand description
A compact size unsigned integer representing the number of leaf hashes, followed by a list
of leaf hashes, followed by the 4 byte master key fingerprint concatenated with the
derivation path of the public key. The derivation path is represented as 32-bit little
endian unsigned integer indexes concatenated with each other. Public keys are those needed
to spend this output. The leaf hashes are of the leaves which involve this public key. The
internal key does not have leaf hashes, so can be indicated with a hashes len of 0.
Finalizers should remove this field after PSBT_IN_FINAL_SCRIPTWITNESS
is constructed.
Fields§
§leaf_hashes: Vec<TapLeafHash>
§origin: KeyOrigin
Implementations§
Source§impl TapDerivation
impl TapDerivation
pub fn with_internal_pk( xpub_origin: XkeyOrigin, terminal: Terminal, ) -> TapDerivation
Trait Implementations§
Source§impl Clone for TapDerivation
impl Clone for TapDerivation
Source§fn clone(&self) -> TapDerivation
fn clone(&self) -> TapDerivation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TapDerivation
impl Debug for TapDerivation
Source§impl Decode for TapDerivation
impl Decode for TapDerivation
fn decode(reader: &mut impl Read) -> Result<TapDerivation, DecodeError>
fn deserialize(bytes: impl AsRef<[u8]>) -> Result<Self, PsbtError>
Source§impl Encode for TapDerivation
A compact size unsigned integer representing the number of leaf hashes, followed by a list
of leaf hashes, followed by the 4 byte master key fingerprint concatenated with the
derivation path of the public key. The derivation path is represented as 32-bit little
endian unsigned integer indexes concatenated with each other.
impl Encode for TapDerivation
A compact size unsigned integer representing the number of leaf hashes, followed by a list of leaf hashes, followed by the 4 byte master key fingerprint concatenated with the derivation path of the public key. The derivation path is represented as 32-bit little endian unsigned integer indexes concatenated with each other.
Source§impl Hash for TapDerivation
impl Hash for TapDerivation
Source§impl PartialEq for TapDerivation
impl PartialEq for TapDerivation
impl Eq for TapDerivation
impl StructuralPartialEq for TapDerivation
Auto Trait Implementations§
impl Freeze for TapDerivation
impl RefUnwindSafe for TapDerivation
impl Send for TapDerivation
impl Sync for TapDerivation
impl Unpin for TapDerivation
impl UnwindSafe for TapDerivation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.