pub struct BoardingOutput { /* private fields */ }
Implementations§
Source§impl BoardingOutput
impl BoardingOutput
pub fn new<C>(
secp: &Secp256k1<C>,
server: XOnlyPublicKey,
owner: XOnlyPublicKey,
boarding_descriptor_template: &str,
exit_delay: Sequence,
network: Network,
) -> Selfwhere
C: Verification,
pub fn address(&self) -> &Address
pub fn owner_pk(&self) -> XOnlyPublicKey
pub fn ark_descriptor(&self) -> &str
pub fn script_pubkey(&self) -> ScriptBuf
pub fn forfeit_spend_info(&self) -> (ScriptBuf, ControlBlock)
pub fn exit_spend_info(&self) -> (ScriptBuf, ControlBlock)
pub fn exit_delay(&self) -> Sequence
pub fn exit_delay_duration(&self) -> Duration
pub fn tapscripts(&self) -> Vec<ScriptBuf>
Sourcepub fn can_be_claimed_unilaterally_by_owner(
&self,
now: Duration,
confirmation_blocktime: Duration,
) -> bool
pub fn can_be_claimed_unilaterally_by_owner( &self, now: Duration, confirmation_blocktime: Duration, ) -> bool
Whether the boarding output can be claimed unilaterally by the owner or not, given the
confirmation_blocktime
of the transaction that included this boarding output as an output.
Trait Implementations§
Source§impl Clone for BoardingOutput
impl Clone for BoardingOutput
Source§fn clone(&self) -> BoardingOutput
fn clone(&self) -> BoardingOutput
Returns a duplicate of the value. Read more
1.0.0 · 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 BoardingOutput
impl Debug for BoardingOutput
Source§impl PartialEq for BoardingOutput
impl PartialEq for BoardingOutput
impl StructuralPartialEq for BoardingOutput
Auto Trait Implementations§
impl Freeze for BoardingOutput
impl RefUnwindSafe for BoardingOutput
impl Send for BoardingOutput
impl Sync for BoardingOutput
impl Unpin for BoardingOutput
impl UnwindSafe for BoardingOutput
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