pub struct LeafVtxoCosignContext<'a> { /* private fields */ }Implementations§
Source§impl<'a> LeafVtxoCosignContext<'a>
impl<'a> LeafVtxoCosignContext<'a>
Sourcepub fn new(
vtxo: &Vtxo,
chain_anchor: &Transaction,
key: &'a Keypair,
) -> (Self, LeafVtxoCosignRequest)
pub fn new( vtxo: &Vtxo, chain_anchor: &Transaction, key: &'a Keypair, ) -> (Self, LeafVtxoCosignRequest)
Create a new LeafVtxoCosignRequest for the given VTXO
Panics if the chain_anchor tx is incorrect or if this VTXO is not a hArk leaf VTXO.
Sourcepub fn finalize(self, vtxo: &mut Vtxo, response: LeafVtxoCosignResponse) -> bool
pub fn finalize(self, vtxo: &mut Vtxo, response: LeafVtxoCosignResponse) -> bool
Finalize the VTXO using the response from the server
Auto Trait Implementations§
impl<'a> Freeze for LeafVtxoCosignContext<'a>
impl<'a> RefUnwindSafe for LeafVtxoCosignContext<'a>
impl<'a> Send for LeafVtxoCosignContext<'a>
impl<'a> Sync for LeafVtxoCosignContext<'a>
impl<'a> Unpin for LeafVtxoCosignContext<'a>
impl<'a> UnwindSafe for LeafVtxoCosignContext<'a>
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