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

tbls: temporarily swap to kryptology fork #188

Merged
merged 2 commits into from
Mar 8, 2022
Merged

tbls: temporarily swap to kryptology fork #188

merged 2 commits into from
Mar 8, 2022

Conversation

corverroos
Copy link
Contributor

Swaps kryptology for a fork that contains fixes for arm64.

category: refactor
ticket: #168

@codecov
Copy link

codecov bot commented Mar 7, 2022

Codecov Report

❗ No coverage uploaded for pull request base (main@518a573). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 518a573...22c4a1e. Read the comment docs.

Copy link
Contributor

@dB2510 dB2510 left a 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)
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

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) {
Copy link
Contributor

@dB2510 dB2510 Mar 7, 2022

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

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool

@corverroos corverroos merged commit f0b92fb into main Mar 8, 2022
@corverroos corverroos deleted the corver/tbls branch March 8, 2022 06:35
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

2 participants