fedimint_wallet_client

Module backup

Source

Modulesยง

recovery_history_tracker ๐Ÿ”’

Structsยง

RecoverScanOutcome ๐Ÿ”’
WalletModuleBackupV0
WalletModuleBackupV1
WalletRecovery
Wallet client module recovery implementation
WalletRecoveryStateV0
WalletRecoveryStateV1

Enumsยง

WalletModuleBackup
WalletRecoveryState

Constantsยง

FEDERATION_RECOVER_MAX_GAP ๐Ÿ”’
When scanning the history of the Federation, thereโ€™s no need to be so cautious about the privacy (as itโ€™s perfectly private), so might as well increase the gap limit.
ONCHAIN_RECOVER_MAX_GAP ๐Ÿ”’
We will check this many addresses after last actually used one before we give up
RECOVER_NUM_IDX_ADD_TO_LAST_USED ๐Ÿ”’
New client will start deriving new addresses from last used one plus that many indexes. This should be less than MAX_GAP, but more than 0: We want to make sure we detect deposits that might have been made after multiple successive recoveries, but we want also to avoid accidental address re-use.

Functionsยง

recover_scan_idxes_for_activity ๐Ÿ”’
A part of WalletClientInit::recover extracted out to be easy to test, as a side-effect free.