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

[RFC] Make credible test set in .spec files and get everything passing according to new bls api #252

Merged
merged 2 commits into from
Aug 20, 2021

Conversation

prozacchiwawa
Copy link
Contributor

This brings the ci runnable test set up to date with the current API of bls-signatures as made in the python bindings and reproduced in jsbindings.cpp.

PublicKey and Signature became G1Element and G2Element
Signature lost aggregation info and its associated methods
Aggregation related methods in Signature and PublicKey became scheme specific in BasicSchemeMPL, AugSchemeMPL and PopSchemeMPL (aggregate, aggregate_verify).
Key seed picked up the requirement of being at least 32-bytes in length and changed salt string
PublicKey and Signature picked up requirement of having the first bit set in a serialized value

I've preserved as much of the spirit of the original as possible and used existing test byte data where possible.

Karma has updated significantly in the interim and runs webpack differently, so some updating and adjustment were required for the browser side test run.

Copy link
Contributor

@aqk aqk left a comment

Choose a reason for hiding this comment

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

Excited to have tests for this API

};
}

// Values lifted from test.js, which is ported from test.py and is a more
Copy link
Contributor

Choose a reason for hiding this comment

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

Good comment, thanks.

@aqk
Copy link
Contributor

aqk commented Jul 20, 2021

@mariano54 can you take a look at these BLS tests?

@wjblanke wjblanke merged commit 95a1acb into Chia-Network:main Aug 20, 2021
UdjinM6 pushed a commit to UdjinM6/bls-signatures that referenced this pull request Dec 1, 2021
…g according to new bls api (Chia-Network#252)

* Make credible test set in .spec files and get everything passing accoring to new bls api

* oops needed this for the other test code
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