-
Notifications
You must be signed in to change notification settings - Fork 5.9k
BIP-374: vendor secp256k1lab and use it for reference implementation #2084
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
base: master
Are you sure you want to change the base?
Conversation
git-subtree-dir: bip-0374/secp256k1lab git-subtree-split: 44dc4bd893b8f03e621585e3bf255253e0e0fbfb
This approach is incompatible with the sys.path extension approach in the next commit which is used to to find the vendored copy of secp256k1lab, so use __file__ instead which works as well.
nymius
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 2b7f079
The changes are aligned with the referenced comments. I'm not reviewing the vendor library as the change is not about the qualities of it.
|
cc: @andrewtoth, @RubenSomsen; perhaps also of interest to @real-or-random. |
|
Also, while I have you here, BIP 374 has been published for over a year, it appears to have a reference implementation and test vectors, do you still have planned work outstanding? Otherwise, you could perhaps consider whether it is time to advance it from Draft to Complete. |
|
ACK 2b7f079. |
Following up on the recent decision that secp256k1lab should be vendored per-BIP if needed/useful (see #2004 (comment) ff. and #1855 (comment) ff.), this PR exercises this for BIP-374. The changes add secp256k1lab version 1.0.0 as subtree [1] within the
bip-0374folder and take use of it in the reference implementation. In particular,secp256k1.pyis removed and theTaggedHashandxor_bytesroutines are used from the secp256k1lab utils module, to simplify the code further. Usage of the library is mentioned in the BIP text to be license compliant (see #2004 (comment)).Can be tested via:
[1] added via the command
$ git subtree add --prefix=bip-0374/secp256k1lab --squash https://github.com/secp256k1lab/secp256k1lab v1.0.0