pub struct CheckpointedArkoorBuilder<S: BuilderState> { /* private fields */ }Implementations§
Source§impl<S: BuilderState> CheckpointedArkoorBuilder<S>
impl<S: BuilderState> CheckpointedArkoorBuilder<S>
pub fn build_unsigned_vtxos<'a>(&'a self) -> impl Iterator<Item = Vtxo> + 'a
Sourcepub fn build_unsigned_dust_vtxos<'a>(
&'a self,
) -> impl Iterator<Item = Vtxo> + 'a
pub fn build_unsigned_dust_vtxos<'a>( &'a self, ) -> impl Iterator<Item = Vtxo> + 'a
Build unsigned dust vtxos (only when dust isolation is active)
pub fn build_unsigned_checkpoint_vtxos<'a>( &'a self, ) -> impl Iterator<Item = Vtxo> + 'a
Sourcepub fn spend_info(&self) -> Vec<(VtxoId, Txid)>
pub fn spend_info(&self) -> Vec<(VtxoId, Txid)>
Source§impl CheckpointedArkoorBuilder<Initial>
impl CheckpointedArkoorBuilder<Initial>
Sourcepub fn new_with_checkpoint(
input: Vtxo,
outputs: Vec<VtxoRequest>,
dust_outputs: Vec<VtxoRequest>,
) -> Result<Self, ArkoorConstructionError>
pub fn new_with_checkpoint( input: Vtxo, outputs: Vec<VtxoRequest>, dust_outputs: Vec<VtxoRequest>, ) -> Result<Self, ArkoorConstructionError>
Create builder with checkpoint transaction
Sourcepub fn new_without_checkpoint(
input: Vtxo,
outputs: Vec<VtxoRequest>,
dust_outputs: Vec<VtxoRequest>,
) -> Result<Self, ArkoorConstructionError>
pub fn new_without_checkpoint( input: Vtxo, outputs: Vec<VtxoRequest>, dust_outputs: Vec<VtxoRequest>, ) -> Result<Self, ArkoorConstructionError>
Create builder without checkpoint transaction
Sourcepub fn generate_user_nonces(
self,
user_keypair: Keypair,
) -> CheckpointedArkoorBuilder<UserGeneratedNonces>
pub fn generate_user_nonces( self, user_keypair: Keypair, ) -> CheckpointedArkoorBuilder<UserGeneratedNonces>
Generates the user nonces and moves the builder to the state::UserGeneratedNonces state This is the path that is used by the user
Source§impl<'a> CheckpointedArkoorBuilder<ServerCanCosign>
impl<'a> CheckpointedArkoorBuilder<ServerCanCosign>
pub fn from_cosign_request( cosign_request: CosignRequest<Vtxo>, ) -> Result<CheckpointedArkoorBuilder<ServerCanCosign>, ArkoorSigningError>
pub fn server_cosign( self, server_keypair: Keypair, ) -> Result<CheckpointedArkoorBuilder<ServerSigned>, ArkoorSigningError>
Source§impl CheckpointedArkoorBuilder<ServerSigned>
impl CheckpointedArkoorBuilder<ServerSigned>
pub fn user_pub_nonces(&self) -> Vec<PublicNonce>
pub fn server_partial_signatures(&self) -> Vec<PartialSignature>
pub fn cosign_response(&self) -> CosignResponse
Source§impl CheckpointedArkoorBuilder<UserGeneratedNonces>
impl CheckpointedArkoorBuilder<UserGeneratedNonces>
pub fn user_pub_nonces(&self) -> &[PublicNonce]
pub fn cosign_request(&self) -> CosignRequest<Vtxo>
pub fn user_cosign( self, user_keypair: &Keypair, server_cosign_data: &CosignResponse, ) -> Result<CheckpointedArkoorBuilder<UserSigned>, ArkoorSigningError>
Source§impl<'a> CheckpointedArkoorBuilder<UserSigned>
impl<'a> CheckpointedArkoorBuilder<UserSigned>
pub fn build_signed_vtxos(&self) -> Vec<Vtxo>
Auto Trait Implementations§
impl<S> Freeze for CheckpointedArkoorBuilder<S>
impl<S> RefUnwindSafe for CheckpointedArkoorBuilder<S>where
S: RefUnwindSafe,
impl<S> Send for CheckpointedArkoorBuilder<S>where
S: Send,
impl<S> Sync for CheckpointedArkoorBuilder<S>where
S: Sync,
impl<S> Unpin for CheckpointedArkoorBuilder<S>where
S: Unpin,
impl<S> UnwindSafe for CheckpointedArkoorBuilder<S>where
S: UnwindSafe,
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