Skip to content

Expose ECDSA sign-to-contract and Anti-Klepto protocol functions#259

Merged
jgriffiths merged 14 commits intoElementsProject:masterfrom
LeoComandini:2021-01-05-s2c-anti-klepto
Jan 11, 2021
Merged

Expose ECDSA sign-to-contract and Anti-Klepto protocol functions#259
jgriffiths merged 14 commits intoElementsProject:masterfrom
LeoComandini:2021-01-05-s2c-anti-klepto

Conversation

@LeoComandini
Copy link
Copy Markdown
Contributor

Expose functionalities added in BlockstreamResearch/secp256k1-zkp#111

Added a section in "Developer Guides" with an example of the Anti-Klepto protocol.

Comment thread include/wally.hpp Outdated
Comment thread include/wally.hpp Outdated
Comment thread include/wally_anti_klepto.h Outdated
Comment thread include/wally_anti_klepto.h Outdated
Comment thread include/wally_anti_klepto.h Outdated
Comment thread include/wally_crypto.h Outdated
Comment thread include/wally_crypto.h Outdated
Comment thread src/anti_klepto.c Outdated
Comment thread src/test/test_anti_klepto.py
Comment thread src/test/test_sign.py Outdated
@LeoComandini LeoComandini force-pushed the 2021-01-05-s2c-anti-klepto branch from bfa725c to d37773d Compare January 8, 2021 21:00
@LeoComandini
Copy link
Copy Markdown
Contributor Author

Addressed the comments and rearranged the commits, which had some issues.

@jgriffiths
Copy link
Copy Markdown
Contributor

Pretty close to the ideal PR now, thanks!

There's only one issue left that stands out after building locally; the new functions need to be wrapped in the Java swig.i file with returns_xxx - that part of the Java wrapping hasn't been automated yet.

I will be merging #257 shortly and I've added a test to it that will fail when unwrapped Java calls are present so this gets caught automatically going forward.

@LeoComandini LeoComandini force-pushed the 2021-01-05-s2c-anti-klepto branch from d37773d to fe326a2 Compare January 11, 2021 06:51
@jgriffiths jgriffiths merged commit fe326a2 into ElementsProject:master Jan 11, 2021
@LeoComandini LeoComandini deleted the 2021-01-05-s2c-anti-klepto branch January 11, 2021 11:56
@Sjors Sjors mentioned this pull request Oct 20, 2021
@Sjors
Copy link
Copy Markdown
Contributor

Sjors commented Oct 20, 2021

secp256k1_ecdsa_s2c.h is only present in secp256k1-zkp so it would be nice to make this feature optional, see #299.

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.

3 participants