pub struct TaprootOutput {
pub output_key: XOnlyPublicKey,
pub merkle_root: Option<TapNodeHash>,
pub spend_info: Option<TaprootSpendInfo>,
}Expand description
Build a Taproot output from spend info
Fields§
§output_key: XOnlyPublicKey§merkle_root: Option<TapNodeHash>§spend_info: Option<TaprootSpendInfo>Implementations§
Source§impl TaprootOutput
impl TaprootOutput
pub fn to_address(&self, network: Network) -> Address
Auto Trait Implementations§
impl Freeze for TaprootOutput
impl RefUnwindSafe for TaprootOutput
impl Send for TaprootOutput
impl Sync for TaprootOutput
impl Unpin for TaprootOutput
impl UnsafeUnpin for TaprootOutput
impl UnwindSafe for TaprootOutput
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