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

Add Support for signatures on the G2 curve for BDN #53

Merged
merged 8 commits into from
Mar 8, 2024

Conversation

matejpavlovic
Copy link

Feel free to further edit the code in this PR, in particular adding proper tests.

sign/bdn/bdn.go Outdated Show resolved Hide resolved
@matejpavlovic
Copy link
Author

I would also like to mention that my understanding of the code is still rather superficial. This shows, for example, that I did not manage to generalize the unit tests. Please make sure that the code actually works before merging. Thanks!

@Stebalien Stebalien mentioned this pull request Feb 20, 2024
@Kubuxu
Copy link

Kubuxu commented Mar 4, 2024

Hey @AnomalRoil let me know what needs to get done to get this merged.

@AnomalRoil
Copy link
Member

It needs more tests I guess, which has been on my to-do for like 2 months 😅

@Kubuxu
Copy link

Kubuxu commented Mar 6, 2024

While working on more tests, I discovered that hashToPoint is not implemented on bn256 G2 Point.
See the PR to upstream kyber: https://github.com/dedis/kyber/pull/428/files

This is not an issue with bls12381 we are using.

@Kubuxu
Copy link

Kubuxu commented Mar 6, 2024

Pull in Kubuxu@c5d6a11 for additional tests

Jakub Sztandera and others added 2 commits March 7, 2024 02:32
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
@AnomalRoil
Copy link
Member

I just need to add some retro-compat functions to avoid breaking public APIs and I'll release a new minor release with this 👍🏻

@AnomalRoil AnomalRoil merged commit 266eb7b into drand:master Mar 8, 2024
1 check passed
@matejpavlovic matejpavlovic deleted the bdn-on-g2 branch March 9, 2024 14:10
Robingoumaz pushed a commit to Robingoumaz/kyber-drand that referenced this pull request Apr 4, 2024
* Add support for signatures on G2 to bdn
* Adapt bdn_test.go to new BDN interface
* Make API functions methods of the Scheme type
* Generalize G1- and G2-related comments
* Fixing bdn tests
* Make the BDN test suite generic over suite and scheme
* Keeping public APIs from v1

---------

Co-authored-by: Yolan Romailler <anomalroil@users.noreply.github.com>
Co-authored-by: Jakub Sztandera <kubuxu@protocol.ai>
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.

None yet

3 participants