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.