pub struct ExpiryVtxoPolicy {
pub internal_key: XOnlyPublicKey,
}Expand description
Server-only policy where coins can only be swept by the server after expiry.
Fields§
§internal_key: XOnlyPublicKeyImplementations§
Source§impl ExpiryVtxoPolicy
impl ExpiryVtxoPolicy
Sourcepub fn new(internal_key: XOnlyPublicKey) -> Self
pub fn new(internal_key: XOnlyPublicKey) -> Self
Creates a new expiry policy with the given internal key.
Sourcepub fn server_sweeping_clause(
&self,
expiry_height: BlockHeight,
server_pubkey: PublicKey,
) -> TimelockSignClause
pub fn server_sweeping_clause( &self, expiry_height: BlockHeight, server_pubkey: PublicKey, ) -> TimelockSignClause
Allows Server to spend after expiry height.
pub fn clauses( &self, expiry_height: BlockHeight, server_pubkey: PublicKey, ) -> Vec<VtxoClause>
pub fn taproot( &self, server_pubkey: PublicKey, expiry_height: BlockHeight, ) -> TaprootSpendInfo
Trait Implementations§
Source§impl Clone for ExpiryVtxoPolicy
impl Clone for ExpiryVtxoPolicy
Source§fn clone(&self) -> ExpiryVtxoPolicy
fn clone(&self) -> ExpiryVtxoPolicy
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 ExpiryVtxoPolicy
impl Debug for ExpiryVtxoPolicy
Source§impl Hash for ExpiryVtxoPolicy
impl Hash for ExpiryVtxoPolicy
Source§impl Ord for ExpiryVtxoPolicy
impl Ord for ExpiryVtxoPolicy
Source§fn cmp(&self, other: &ExpiryVtxoPolicy) -> Ordering
fn cmp(&self, other: &ExpiryVtxoPolicy) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ExpiryVtxoPolicy
impl PartialEq for ExpiryVtxoPolicy
Source§impl PartialOrd for ExpiryVtxoPolicy
impl PartialOrd for ExpiryVtxoPolicy
impl Eq for ExpiryVtxoPolicy
impl StructuralPartialEq for ExpiryVtxoPolicy
Auto Trait Implementations§
impl Freeze for ExpiryVtxoPolicy
impl RefUnwindSafe for ExpiryVtxoPolicy
impl Send for ExpiryVtxoPolicy
impl Sync for ExpiryVtxoPolicy
impl Unpin for ExpiryVtxoPolicy
impl UnwindSafe for ExpiryVtxoPolicy
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.