pub struct Output {
pub redeem_script: Option<ScriptBuf>,
pub witness_script: Option<ScriptBuf>,
pub bip32_derivation: BTreeMap<PublicKey, (Fingerprint, DerivationPath), Global>,
pub tap_internal_key: Option<XOnlyPublicKey>,
pub tap_tree: Option<TapTree>,
pub tap_key_origins: BTreeMap<XOnlyPublicKey, (Vec<TapLeafHash, Global>, (Fingerprint, DerivationPath)), Global>,
pub proprietary: BTreeMap<ProprietaryKey<u8>, Vec<u8, Global>, Global>,
pub unknown: BTreeMap<Key, Vec<u8, Global>, Global>,
}Expand description
A key-value map for an output of the corresponding index in the unsigned transaction.
Fields§
§redeem_script: Option<ScriptBuf>The redeem script for this output.
witness_script: Option<ScriptBuf>The witness script for this output.
bip32_derivation: BTreeMap<PublicKey, (Fingerprint, DerivationPath), Global>A map from public keys needed to spend this output to their corresponding master key fingerprints and derivation paths.
tap_internal_key: Option<XOnlyPublicKey>The internal pubkey.
tap_tree: Option<TapTree>Taproot Output tree.
tap_key_origins: BTreeMap<XOnlyPublicKey, (Vec<TapLeafHash, Global>, (Fingerprint, DerivationPath)), Global>Map of tap root x only keys to origin info and leaf hashes contained in it.
proprietary: BTreeMap<ProprietaryKey<u8>, Vec<u8, Global>, Global>Proprietary key-value pairs for this output.
unknown: BTreeMap<Key, Vec<u8, Global>, Global>Unknown key-value pairs for this output.
Implementations§
Trait Implementations§
impl Eq for Output
impl StructuralEq for Output
impl StructuralPartialEq for Output
Auto Trait Implementations§
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.