Skip to main content

Crate fedimint_walletv2_common

Crate fedimint_walletv2_common 

Source

Modules§

config
endpoint_constants

Structs§

ExcessiveRelativeFeeError
A module’s configured relative fee is above what the module accepts.
FederationWallet
OutputInfo
PendingOutput
An output passing the probabilistic receive filter that a guardian can see, but which is not yet deep enough to have entered the federation’s consensus output log.
PendingOutputs
A guardian’s local, advisory view of the receive outputs it can see but the federation has not recorded yet, together with the block count that view was derived from.
TxInfo
UnknownWalletInputVariantError
UnknownWalletOutputVariantError
WalletCommonInit
WalletInputV0
WalletModuleTypes
WalletOutputOutcome
WalletOutputV0

Enums§

MempoolVisibility
How much of a mempool was inspected for unmined peg-ins.
StandardScript
WalletConsensusItem
WalletInput
WalletInputError
WalletOutput
WalletOutputError

Constants§

BLOCK_COUNT_VOTE_DELAY
How many blocks a peer’s block count vote trails its bitcoin backend: the finality delay, plus one block of slack. Processing a new consensus block count waits for the local backend to report the consensus count plus the finality delay, and without the slack that is exactly the block the voter saw, so a backend a little behind, or a backend status that is stale (it is polled once a minute), stalled item processing on every new block.
CONFIRMATION_FINALITY_DELAY
Number of confirmations required for a transaction to be considered as final by the federation. The block that mines the transaction does not count towards the number of confirmations.
KIND
MODULE_CONSENSUS_VERSION

Functions§

descriptor
is_potential_receive
Returns true if the script pubkey potentially belongs to the federation. This uses a probabilistic filter - only ~1/65536 of P2WSH scripts pass.
sleep_duration
Returns a sleep duration of 1 second in test environments or 60 seconds in production. Used for polling intervals where faster feedback is needed during testing.
tweak_public_key