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

Signature handler component for consensus #4316

Merged
merged 20 commits into from
Aug 2, 2022

Conversation

ssd04
Copy link
Contributor

@ssd04 ssd04 commented Jul 22, 2022

Added a separate signature handler component for consensus, it is basically a wrapper over the new stateless multisigner from crypto. It keeps the associated public keys and signature shares used for consensus.

  • unit tests
  • temp elrond-go-crypto version

- temporary mock for multisigner
- unit tests
- temp elrond-go-crypto version
@ssd04 ssd04 self-assigned this Jul 22, 2022
@codecov-commenter
Copy link

codecov-commenter commented Aug 1, 2022

Codecov Report

❗ No coverage uploaded for pull request base (feat/kosk-bls-multisigner@1e94967). Click here to learn what that means.
The diff coverage is n/a.

@@                     Coverage Diff                      @@
##             feat/kosk-bls-multisigner    #4316   +/-   ##
============================================================
  Coverage                             ?   71.56%           
============================================================
  Files                                ?      666           
  Lines                                ?    86350           
  Branches                             ?        0           
============================================================
  Hits                                 ?    61796           
  Misses                               ?    20142           
  Partials                             ?     4412           

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 1e94967...67ed8dd. Read the comment docs.

consensus/spos/bls/subroundEndRound.go Outdated Show resolved Hide resolved
consensus/spos/bls/subroundSignature.go Outdated Show resolved Hide resolved
consensus/signing/signing.go Show resolved Hide resolved
consensus/signing/signing.go Outdated Show resolved Hide resolved
consensus/signing/signing.go Outdated Show resolved Hide resolved
consensus/interface.go Outdated Show resolved Hide resolved
testscommon/cryptoMocks/multiSignerNewStub.go Outdated Show resolved Hide resolved
consensus/signing/signing_test.go Outdated Show resolved Hide resolved
consensus/spos/bls/subroundSignature.go Outdated Show resolved Hide resolved
consensus/spos/bls/subroundEndRound.go Outdated Show resolved Hide resolved
@ssd04 ssd04 marked this pull request as ready for review August 1, 2022 09:54
@ssd04 ssd04 changed the title added signing component for consensus: Signature handler component for consensus Aug 1, 2022
consensus/signing/signing.go Outdated Show resolved Hide resolved
consensus/signing/signing.go Show resolved Hide resolved
AdoAdoAdo
AdoAdoAdo previously approved these changes Aug 1, 2022
@sstanculeanu sstanculeanu self-requested a review August 1, 2022 16:08
consensus/signing/errors.go Outdated Show resolved Hide resolved
consensus/signing/errors.go Outdated Show resolved Hide resolved
consensus/signing/signing.go Outdated Show resolved Hide resolved
consensus/signing/signing.go Outdated Show resolved Hide resolved
consensus/signing/signing.go Outdated Show resolved Hide resolved
consensus/signing/signing.go Show resolved Hide resolved
consensus/signing/signing_test.go Outdated Show resolved Hide resolved
consensus/signing/signing_test.go Outdated Show resolved Hide resolved
consensus/spos/bls/subroundSignature.go Outdated Show resolved Hide resolved
consensus/spos/bls/subroundSignature.go Outdated Show resolved Hide resolved
sstanculeanu
sstanculeanu previously approved these changes Aug 2, 2022
sstanculeanu
sstanculeanu previously approved these changes Aug 2, 2022
if err != nil {
return err
}

pubKeys := make([][]byte, 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

since we have for example in metachain 400 in consensus group, this will cause a lot of re-allocations
maybe do
pubKeys := make([][]byte, 0, len(sh.data.pubKeys))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@AdoAdoAdo AdoAdoAdo merged commit a7ab265 into feat/kosk-bls-multisigner Aug 2, 2022
@AdoAdoAdo AdoAdoAdo deleted the signatures-holder-component branch August 2, 2022 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants