pub struct CdkRedeemer { /* private fields */ }Expand description
Production redeemer backed by cdk::wallet::Wallet.
Maintains one wallet per (mint_url, unit) pair, lazily created on
first use. All wallets share a single WalletDatabase (a redb file)
so proofs, keysets, and quotes for every mint live in one place.
The seed is used by cdk for deterministic blinding-factor
derivation. See derive_seed_from_nostr_key for the production
derivation; tests can construct CdkRedeemer directly with any
32-byte seed.
Implementations§
Trait Implementations§
Source§impl MintRedeemer for CdkRedeemer
impl MintRedeemer for CdkRedeemer
Auto Trait Implementations§
impl !Freeze for CdkRedeemer
impl !RefUnwindSafe for CdkRedeemer
impl Send for CdkRedeemer
impl Sync for CdkRedeemer
impl Unpin for CdkRedeemer
impl UnsafeUnpin for CdkRedeemer
impl !UnwindSafe for CdkRedeemer
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more