Skip to content

Add descriptor sanity checks #33

Open
@dr-orlovsky

Description

@dr-orlovsky

Right now users can provide library with invalid xpubs doesn't matching the descriptor requirements in many ways. For instance, they can mix testnet and mainnet derivations, contain custom, non-complete or different keychain segments, provide zeros as master fingerprint (which will result in PSBTs failing to be signed with most hardware wallets) etc.

Descriptor trait need to have a check_sanity method detecting such issues and allowing library users to report them to the user upon the wallet creation.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions