pub struct BoardingOutput { /* private fields */ }Implementations§
Source§impl BoardingOutput
impl BoardingOutput
pub fn new<C>(
secp: &Secp256k1<C>,
server: XOnlyPublicKey,
owner: XOnlyPublicKey,
exit_delay: Sequence,
network: Network,
) -> Result<Self, Error>where
C: Verification,
pub fn address(&self) -> &Address
pub fn owner_pk(&self) -> XOnlyPublicKey
pub fn server_pk(&self) -> XOnlyPublicKey
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 output_key(&self) -> TweakedPublicKey
pub fn to_ark_address( &self, network: Network, server: XOnlyPublicKey, ) -> ArkAddress
pub fn tapscripts(&self) -> Vec<ScriptBuf>
Sourcepub fn can_be_claimed_unilaterally_by_owner(
&self,
now: Duration,
confirmation_blocktime: Duration,
confirmations: u64,
) -> bool
pub fn can_be_claimed_unilaterally_by_owner( &self, now: Duration, confirmation_blocktime: Duration, confirmations: u64, ) -> 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 (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 BoardingOutput
impl Debug for BoardingOutput
impl Eq for BoardingOutput
Source§impl Hash for BoardingOutput
impl Hash for BoardingOutput
Source§impl PartialEq for BoardingOutput
impl PartialEq for BoardingOutput
Source§fn eq(&self, other: &BoardingOutput) -> bool
fn eq(&self, other: &BoardingOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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