Rescan, Account Discovery, and default Passphhrase #38

Merged
roylee17 merged 4 commits from separate-rescan-and-account-discovery into master 2022-11-01 03:53:17 +01:00
roylee17 commented 2022-11-01 02:10:11 +01:00 (Migrated from github.com)

Account discovery scans the address of accounts that are not knowingly being used yet. To derive those addresses, the wallet has to be unblocked first. It is performed at wallet startup as part of the recovery process. The wallet prompts users for the passphrase before moving forward.

Many users integrate the wallet as part of their infrastructure in a secure environment and prefer to remove this interactive prompt and have the wallet start in an unlocked state. This PR introduces the following changes:

  • Upon startup, only scan addresses previously derived when catching up blocks. The passphrase is not required to derive those addresses.

  • Account discovery is implemented in a new RPC - rescanblockchain, which requires the wallet to be unlocked with a passphrase first.

  • Introduce the default passphrase passphrase, which is used during wallet creation unless users override it with the -p option.

  • Upon startup, the wallet unlocks itself with no timeout using the default or user-provided(with -p) passphrase.

Account discovery scans the address of accounts that are not knowingly being used yet. To derive those addresses, the wallet has to be unblocked first. It is performed at wallet startup as part of the recovery process. The wallet prompts users for the passphrase before moving forward. Many users integrate the wallet as part of their infrastructure in a secure environment and prefer to remove this interactive prompt and have the wallet start in an unlocked state. This PR introduces the following changes: - Upon startup, only scan addresses previously derived when catching up blocks. The passphrase is not required to derive those addresses. - Account discovery is implemented in a new RPC - `rescanblockchain`, which requires the wallet to be unlocked with a passphrase first. - Introduce the default passphrase `passphrase`, which is used during wallet creation unless users override it with the `-p` option. - Upon startup, the wallet unlocks itself with no timeout using the default or user-provided(with `-p`) passphrase.
Sign in to join this conversation.
No description provided.