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

Use BLS batch verify in AggregateAndProof #2284

Merged
merged 3 commits into from
Mar 29, 2021

Conversation

dapplion
Copy link
Contributor

Motivation

See #2225

Description

  • Moves the BLS signature sets types to the utils folder since it is not tied to phase0 or fast.
  • Gets 3 signature sets from AggregateAndProof, and verifies them in batch

I have not confirmed the performance improvement in production

Closes #2225

@github-actions github-actions bot added scope-networking All issues related to networking, gossip, and libp2p. StateTransition labels Mar 28, 2021
@codeclimate
Copy link

codeclimate bot commented Mar 28, 2021

Code Climate has analyzed commit 9166d22 and detected 0 issues on this pull request.

View more on Code Climate.

Copy link
Member

@wemeetagain wemeetagain left a comment

Choose a reason for hiding this comment

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

👍 We really don't need to know which signature is incorrect/why the aggAndProof is invalid. Will be interesting to see the improvement.

export * from "./shuffle";
export * from "./genesis";
export * from "./validator";
export * from "./validatorStatus";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorted alphabetically to be able to track what we are exporting

@wemeetagain wemeetagain merged commit ea43a75 into master Mar 29, 2021
@wemeetagain wemeetagain deleted the dapplion/aggregate-batch-verify branch March 29, 2021 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope-networking All issues related to networking, gossip, and libp2p.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

validateAggregateAttestation could use batch signature verification
4 participants