pub struct TapscriptProof {
pub tap_preimage1: Option<TapscriptPreimage>,
pub tap_preimage2: Option<TapscriptPreimage>,
pub bip86: bool,
pub unknown_odd_types: BTreeMap<u64, Vec<u8>>,
}Expand description
TapscriptProof represents a proof of a Taproot output not including a
Taproot Asset commitment.
This corresponds to proof.TapscriptProof in Go.
Fields§
§tap_preimage1: Option<TapscriptPreimage>TapPreimage1 is the preimage for a TapNode at depth 0 or 1.
tap_preimage2: Option<TapscriptPreimage>TapPreimage2, if specified, is the pair preimage for TapPreimage1 at depth 1.
bip86: boolBip86 indicates this is a normal BIP-0086 wallet output.
unknown_odd_types: BTreeMap<u64, Vec<u8>>UnknownOddTypes is a map of unknown odd types encountered during decoding.
Trait Implementations§
Source§impl Clone for TapscriptProof
impl Clone for TapscriptProof
Source§fn clone(&self) -> TapscriptProof
fn clone(&self) -> TapscriptProof
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TapscriptProof
impl Debug for TapscriptProof
Source§impl<'de> Deserialize<'de> for TapscriptProof
impl<'de> Deserialize<'de> for TapscriptProof
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TapscriptProof
Source§impl PartialEq for TapscriptProof
impl PartialEq for TapscriptProof
Source§fn eq(&self, other: &TapscriptProof) -> bool
fn eq(&self, other: &TapscriptProof) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TapscriptProof
impl Serialize for TapscriptProof
impl StructuralPartialEq for TapscriptProof
Auto Trait Implementations§
impl Freeze for TapscriptProof
impl RefUnwindSafe for TapscriptProof
impl Send for TapscriptProof
impl Sync for TapscriptProof
impl Unpin for TapscriptProof
impl UnsafeUnpin for TapscriptProof
impl UnwindSafe for TapscriptProof
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