Skip to main content

Crate fedimint_mintv2_client

Crate fedimint_mintv2_client 

Source

Re-exportsยง

pub use fedimint_mintv2_common as common;

Modulesยง

api ๐Ÿ”’
cli ๐Ÿ”’
client_db
ecash ๐Ÿ”’
events ๐Ÿ”’
input ๐Ÿ”’
issuance
output ๐Ÿ”’
receive ๐Ÿ”’

Structsยง

ECash
MintClientContext
MintClientInit
MintClientModule
PeerPool ๐Ÿ”’
Hands out guardians so that only one slice request is outstanding to each.
ReceivePaymentEvent
Event emitted when a receive (reissuance) operation is initiated.
ReceivePaymentUpdateEvent
Event emitted when a receive (reissuance) operation reaches a final state.
SendPaymentEvent
Event emitted when e-cash is sent out-of-band. This is a final event - once e-cash is sent, the operation is complete.
SpendableNote

Enumsยง

FinalReceiveOperationState
MintClientStateMachines
MintOperationMeta
ReceiveECashError
ReceivePaymentStatus
Status of a receive (reissuance) operation.
SendECashError

Constantsยง

MAX_SLICE_TIMEOUT ๐Ÿ”’
Upper bound for the per-retry growth of SLICE_TIMEOUT; the flat timeout used before the growth was introduced.
PARALLEL_HASH_REQUESTS ๐Ÿ”’
PARALLEL_SLICE_REQUESTS ๐Ÿ”’
PEER_READMISSION ๐Ÿ”’
How long a guardian sits out after failing to answer a slice request.
SLICE_SIZE ๐Ÿ”’
SLICE_TIMEOUT ๐Ÿ”’
How long a single peer is given to answer a slice request.
TARGET_PER_DENOMINATION ๐Ÿ”’

Functionsยง

download_slice ๐Ÿ”’
Download a slice, asking one guardian at a time and holding it for the duration of the request.
represent_amount ๐Ÿ”’
represent_amount_with_fees ๐Ÿ”’
round_to_multiple ๐Ÿ”’