pub struct Wallet { /* private fields */ }Implementations§
Source§impl Wallet
impl Wallet
pub fn new( public_key: RsaPublicKey, institution_id: String, currency: String, ) -> Self
pub fn prepare_withdrawal( &self, amount: u64, denomination: u64, ) -> Result<Vec<(BlindedToken, TokenMetadata)>>
pub fn finalize_withdrawal( &self, blind_signatures: Vec<BlindSignature>, metadata: Vec<TokenMetadata>, expires_at: DateTime<Utc>, ) -> Result<Vec<Token>>
Auto Trait Implementations§
impl Freeze for Wallet
impl RefUnwindSafe for Wallet
impl Send for Wallet
impl Sync for Wallet
impl Unpin for Wallet
impl UnsafeUnpin for Wallet
impl UnwindSafe for Wallet
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