Skip to content
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

Update for new BIP340: XOnly is always even #28

Merged
merged 6 commits into from
Sep 15, 2020
Merged

Conversation

LLFourn
Copy link
Owner

@LLFourn LLFourn commented Sep 15, 2020

Update to latest BIP340 that will now presumably be final. I completely removed the logic for SquareY. I think that there are systems like Grin that still use old BIP340 type signatures but I don't think it's worth keeping it in here for them at the moment.

In addition:

BIP340 recently changed to transform 32-byte xonly to even y public keys
consistently. I see no reason to keep the SquareY option as its not used
in Bitcoin anymore.
- Implement encode and decode as explicit functions
- Move all hex stuff into the module
- Use new csv test file
- Use new hex module from secp25kfun
Abandoned the old one (mention by real-or-random) to the one suggested
here:

sipa/bips#207 (comment)
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.

1 participant