Skip to content

elip150: add multi-key test vectors and forbid paths in blinding key - #45

Open
delta1 wants to merge 2 commits into
ElementsProject:mainfrom
delta1:issues/34
Open

elip150: add multi-key test vectors and forbid paths in blinding key#45
delta1 wants to merge 2 commits into
ElementsProject:mainfrom
delta1:issues/34

Conversation

@delta1

@delta1 delta1 commented Aug 4, 2026

Copy link
Copy Markdown
Member

Add Valid Descriptors 11-12 covering multisig DESCRIPTOR expressions with index-derivable keys (KEY/0/* and BIP389 multipath KEY/<0;1>/*), and Invalid Descriptor 8 showing a blinding key with a derivation path is rejected. Also make explicit in the spec text that BLINDING_KEY must resolve to a single fixed key with no path component. Closes #34.

Add Valid Descriptors 11-12 covering multisig DESCRIPTOR expressions with
index-derivable keys (KEY/0/* and BIP389 multipath KEY/<0;1>/*), and
Invalid Descriptor 8 showing a blinding key with a derivation path is
rejected. Also make explicit in the spec text that BLINDING_KEY must
resolve to a single fixed key with no path component. Closes ElementsProject#34.
Comment thread elip-0150.mediawiki Outdated
Comment thread elip-0150.mediawiki
Comment thread elip-0150.mediawiki Outdated
** Reason: single private key is WIF, not hex
* Invalid Descriptor 8
** <code>ct(xpub6ERApfZwUNrhLCkDtcHTcxd75RbzS1ed54G1LkBUHQVHQKqhMkhgbmJbZRkrgZw4koxb5JaHWkY4ALHY2grBGRjaDMzQLcgJvLJuZZvRcEL/0/*,elwpkh(xpub69H7F5d8KSRgmmdJg2KhpAK8SR3DjMwAdkxj3ZuxV27CprR9LgpeyGmXUbC6wb7ERfvrnKZjXoUmmDznezpbZb7ap6r1D3tgFxHmwMkQTPH))#t8tpvh0m</code>
** Reason: blinding key expression must not contain a derivation path

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add each listed forbidden element as its own test case (and update with a valid test case assuming fixed unhardened paths are allowed).

Comment thread elip-0150.mediawiki
* Invalid Descriptor 8
** <code>ct(xpub6ERApfZwUNrhLCkDtcHTcxd75RbzS1ed54G1LkBUHQVHQKqhMkhgbmJbZRkrgZw4koxb5JaHWkY4ALHY2grBGRjaDMzQLcgJvLJuZZvRcEL/0/*,elwpkh(xpub69H7F5d8KSRgmmdJg2KhpAK8SR3DjMwAdkxj3ZuxV27CprR9LgpeyGmXUbC6wb7ERfvrnKZjXoUmmDznezpbZb7ap6r1D3tgFxHmwMkQTPH))#t8tpvh0m</code>
** Reason: blinding key expression must not contain a derivation path
** Reason: blinding key expression must not contain a wildcard, as it does not resolve to exactly one key

@jgriffiths jgriffiths Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this is a hardened element 0h, and the case below is a multi-index <0;1> - you've documented as wildcard then hardened element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confidential Descriptors lack multi-key test cases

2 participants