Skip to content

[Wallet V2] Use taproot wallet descriptor #653

@mojoX911

Description

@mojoX911

Currently, the V2 Wallet is still using the p2wpkh and p2wsh descriptors. This needs to be updated to the Taproot version.

Potential Approach

  • Make the wallet add both types of descriptors in the RPC.
  • Sync should happen for all descriptors.
  • User can optionally disable one of the descriptor types, and be exclusively either legacy or taproot only. Although not recommended.
  • For all taproot swaps, always use taproot descriptors.
  • For all p2wsh swaps always use p2wsh descriptor.
  • Track at the wallet storage layer all incoming and outgoing swapcoins for both types of descriptors.
  • At the balance and utxo lists, combine all data from both the descriptor types to not miss any sats.
  • For get_new_address give the option to get any type of address. Taproot by default. But if users want, it can give legacy new addresses too. A separate "last used" address index should be tracked for taproot addresses.
  • Make a new marker type in UTXO display struct for legacy/taproot utxos.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

up-for-grabs

Relationships

None yet

Development

No branches or pull requests

Issue actions