-
Notifications
You must be signed in to change notification settings - Fork 13
elip150: handle x-only pubkeys #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
elip150: handle x-only pubkeys #66
Conversation
|
Compressed public keys are allowed, but these are 66 bytes, not 64. You mean to say that x-only pubkeys, which are 64 bytes, are disallowed. You also need to change your test vectors. |
In ELIP150, descriptor blinding keys cannot be x-only pubkeys. Thus if we have a 64 hex char descriptor blinding key, we need to interpret is as a single view descriptor blinding key.
5bd5a3d to
e6d6028
Compare
yes, my bad, replaced "compressed" with "x-only"
removed a forgotten |
|
utACK e6d6028 |
You are testing 66-char hex strings, but these are uninteresting because they're unambiguously compressed pubkeys. You mean to test 64-char hex strings, which could be parsed as x-only keys but shouldn't be. |
I still don't get it, |
|
Oh! You're right, I misread your test. You are using the 33-byte key |
apoelstra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK e6d6028
In ELIP150, descriptor blinding keys cannot be x-only pubkeys. Thus if we have a 64 hex char descriptor blinding key, we need to interpret is as a single view descriptor blinding key.