Skip to content

Add ecdsa adaptor#11

Merged
jonasnick merged 3 commits intoBlockstreamResearch:masterfrom
p2pderivatives:add-ecdsa-adaptor
Apr 19, 2021
Merged

Add ecdsa adaptor#11
jonasnick merged 3 commits intoBlockstreamResearch:masterfrom
p2pderivatives:add-ecdsa-adaptor

Conversation

@Tibo-lg
Copy link
Copy Markdown
Contributor

@Tibo-lg Tibo-lg commented Apr 7, 2021

As ECDSA adaptor signatures PR has been merged upstream (BlockstreamResearch/secp256k1-zkp#117) I tried to port the code I had for them in a fork of rust-secp256k1 here (hoping that it could be useful to others).

@Tibo-lg Tibo-lg force-pushed the add-ecdsa-adaptor branch 3 times, most recently from 3becc42 to 9658de2 Compare April 7, 2021 12:19
Comment thread src/zkp/ecdsa_adaptor.rs Outdated
Copy link
Copy Markdown
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @Tibo-lg!
Definitely most welcome :)

I've left some comments regarding naming, unsafe-block size and very importantly: panic behaviour.

Comment thread src/zkp/ecdsa_adaptor.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs Outdated
@Tibo-lg Tibo-lg force-pushed the add-ecdsa-adaptor branch from 9658de2 to 2202709 Compare April 8, 2021 06:26
Copy link
Copy Markdown
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Thanks for working in the comments and adding all these tests!

I've left some more feedback. Everything related to the tests is more of a nit though !

@jonasnick Can you also have a look at this please?

Comment thread src/zkp/ecdsa_adaptor.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs
Comment thread src/lib.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs Outdated
@thomaseizinger
Copy link
Copy Markdown
Contributor

Confirmed that 7637c2e is the result of vendoring BlockstreamResearch/secp256k1-zkp@f3708a1.

@Tibo-lg Tibo-lg force-pushed the add-ecdsa-adaptor branch 3 times, most recently from 55df7d2 to 0229236 Compare April 12, 2021 02:47
Copy link
Copy Markdown
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Thank you!

Just one more typo in the docs!
Otherwise happy to merge this.

I'll give @jonasnick a couple of days in case he wants to have a look as well!

Comment thread src/lib.rs Outdated
@Tibo-lg Tibo-lg force-pushed the add-ecdsa-adaptor branch from 0229236 to 1830ec6 Compare April 12, 2021 04:17
Copy link
Copy Markdown
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

utACK 1830ec6

Copy link
Copy Markdown
Collaborator

@jonasnick jonasnick left a comment

Choose a reason for hiding this comment

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

Very nice!

ACK mod nits

Comment thread src/lib.rs Outdated
Comment thread src/zkp/ecdsa_adaptor.rs
@Tibo-lg Tibo-lg force-pushed the add-ecdsa-adaptor branch from 1830ec6 to e009a51 Compare April 19, 2021 00:31
@Tibo-lg Tibo-lg force-pushed the add-ecdsa-adaptor branch from e009a51 to 309bbb4 Compare April 19, 2021 00:33
@Tibo-lg
Copy link
Copy Markdown
Contributor Author

Tibo-lg commented Apr 19, 2021

Rebased on a7409c9

@thomaseizinger
Copy link
Copy Markdown
Contributor

tACK 309bbb4

Verified locally that f9b8dc7 just vendors BlockstreamResearch/secp256k1-zkp@f3708a1 and does nothing else.

@jonasnick
Copy link
Copy Markdown
Collaborator

ACK 309bbb4

@jonasnick jonasnick merged commit 8baed9d into BlockstreamResearch:master Apr 19, 2021
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