bitcoinj / bitcoinj

A library for working with Bitcoin
https://bitcoinj.org
Apache License 2.0
4.99k stars 2.48k forks source link

Proposal: remove wallet upgrade path from basic to deterministic #2342

Closed schildbach closed 2 years ago

schildbach commented 2 years ago

When HD wallets were introduced in 2013, a semi-automatic and deterministic upgrade path was introduced to get users from a basic wallet (which has individual, random keys) to deterministic wallets. In a nutshell, the seed is derived from the first random key in the wallet.

I propose to remove this upgrade path. Virtually all wallets and its backups should be upgraded by now. I consider these cases:

Note this proposal does not touch the upgrade path from P2PKH to P2WPKH and any later yet-to-implement upgrades like P2WPKH to P2TR.

schildbach commented 2 years ago

Implemented via #2343

msgilligan commented 2 years ago

This sound good to me.

schildbach commented 2 years ago

Fixed via #2343 (merged)