-
Notifications
You must be signed in to change notification settings - Fork 80
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
tbls: temporarily swap to kryptology fork #188
Conversation
Codecov Report
@@ Coverage Diff @@
## main #188 +/- ##
=======================================
Coverage ? 52.34%
=======================================
Files ? 43
Lines ? 2707
Branches ? 0
=======================================
Hits ? 1417
Misses ? 1137
Partials ? 153 Continue to review full report at Codecov.
|
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.
LGTM!
if err != nil || !ok { | ||
continue | ||
} | ||
validShares = append(validShares, pubShare) | ||
|
||
validSigs = append(validSigs, psig) | ||
signers = append(signers, psig.Identifier) |
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.
We don't need this line since we are storing validSigs which has Identifier in it
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.
yeah, but then you need to extract valid sig identifiers later, so might as well do it here.
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.
Cool
@@ -162,6 +172,16 @@ func PartialSign(sks *bls_sig.SecretKeyShare, msg []byte) (*bls_sig.PartialSigna | |||
return psig, nil | |||
} | |||
|
|||
// Sign signs given message(msg) using given Secret Key(sk) and returns a Signature. | |||
func Sign(sk *bls_sig.SecretKey, msg []byte) (*bls_sig.Signature, error) { |
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.
why do we need this function? since kryptology has this function, we can directly use that
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.
Yeah it does, but this automatically selects the correct scheme.
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.
Cool
Swaps kryptology for a fork that contains fixes for arm64.
category: refactor
ticket: #168