This PR replaces the Bech32 checkbox with an address type dropdown It “Use Taproot” checkbox to the receive screen for any wallet with a Taproot descriptor. The Bech32m option is hidden for wallets that don’t have taproot descriptors.
Bech32 is kept as the default even for Taproot enabled wallets until it’s more widely supported.
(an earlier attempt of this PR added a second checkbox)
Suggested testing
- notice that the Bech32m entry only appears for wallet with a taproot descriptor
- verify that it generates a bc1p instead of bc1q address
- Legacy wallet
- Default descriptor wallet (current does not have taproot descriptor)
- Wallet with taproot descriptor:
- just create a new descriptor wallet