Modulesยง
Structsยง
- Recover
Scan ๐Outcome - Wallet
Module Backup V0 - Wallet
Module Backup V1 - Wallet
Recovery - Wallet client module recovery implementation
- Wallet
Recovery State V0 - Wallet
Recovery State V1
Enumsยง
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.