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 bls #29

Merged
merged 10 commits into from
Jul 3, 2024
Merged

add bls #29

merged 10 commits into from
Jul 3, 2024

Conversation

qiweiii
Copy link
Contributor

@qiweiii qiweiii commented Jun 28, 2024

#3

@qiweiii qiweiii marked this pull request as ready for review July 2, 2024 03:27
public struct BLS {
public let secretKey: Data32

public var publicKey: Data48 {
Copy link
Member

Choose a reason for hiding this comment

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

I think best to make this a let and initialize it at init to avoid the possibility to generate pub key too many times

Copy link
Member

Choose a reason for hiding this comment

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

GP defines BLS pubkey to be 144 bytes. Maybe it is the compressed G1 element (48 bytes) + compressed G2 element (96 bytes)

@xlc
Copy link
Member

xlc commented Jul 2, 2024

this is probably fine for now. we need to wait for some related test vectors to confirm the encoding format

@xlc xlc merged commit bee2b48 into master Jul 3, 2024
2 checks passed
@xlc xlc deleted the bls-signature branch July 3, 2024 03:27
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.

2 participants