-
Notifications
You must be signed in to change notification settings - Fork 0
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
add bls #29
Conversation
Utils/Sources/Utils/BLS.swift
Outdated
public struct BLS { | ||
public let secretKey: Data32 | ||
|
||
public var publicKey: Data48 { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
this is probably fine for now. we need to wait for some related test vectors to confirm the encoding format |
#3