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

Replace BLS library with github.com/kilic/bn254 #978

Merged
merged 6 commits into from Nov 30, 2022

Conversation

igorcrevar
Copy link
Contributor

@igorcrevar igorcrevar commented Nov 29, 2022

Description

Replace BLS library with github.com/kilic/bn254

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • Hotfix (change that solves an urgent issue, and requires immediate attention)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)

Checklist

  • I have assigned this PR to myself
  • I have added at least 1 reviewer
  • I have added the relevant labels
  • I have updated the official documentation
  • I have added sufficient documentation in code

Testing

  • I have tested this code with the official test suite
  • I have tested this code manually

@igorcrevar igorcrevar added the bug fix Functionality that fixes a bug label Nov 29, 2022
@igorcrevar igorcrevar self-assigned this Nov 29, 2022
@igorcrevar igorcrevar changed the base branch from develop to feature/v3-parity November 29, 2022 13:13
@igorcrevar igorcrevar force-pushed the kilic-bn254 branch 3 times, most recently from ddba74f to 7d139ca Compare November 29, 2022 13:25
@codecov
Copy link

codecov bot commented Nov 29, 2022

Codecov Report

❗ No coverage uploaded for pull request base (feature/v3-parity@07ce7e6). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 193a4a9 differs from pull request most recent head 3405b48. Consider uploading reports for the commit 3405b48 to get more accurate results

@@                 Coverage Diff                  @@
##             feature/v3-parity     #978   +/-   ##
====================================================
  Coverage                     ?   55.28%           
====================================================
  Files                        ?      167           
  Lines                        ?    22357           
  Branches                     ?        0           
====================================================
  Hits                         ?    12361           
  Misses                       ?     9019           
  Partials                     ?      977           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@goran-ethernal goran-ethernal left a comment

Choose a reason for hiding this comment

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

LGTM. Great job 💯

g2 = new(bn256.G2).Set(&zeroG2)
} else {
g2 = new(bn256.G2).Set(p.p)
func (p *PublicKey) aggregate(next *PublicKey) *PublicKey {
Copy link
Contributor

Choose a reason for hiding this comment

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

As a separate task could we remove this code duplication(publicKey, signature)?

Copy link
Contributor

Choose a reason for hiding this comment

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

At first glance it seemed like it can be unified into a single implementation, but eventually it cannot. The reason is because signature aggregation works with G1 point, whereas public key aggregates G2 points.

@igorcrevar igorcrevar merged commit e96eeda into feature/v3-parity Nov 30, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2022
@Stefan-Ethernal Stefan-Ethernal deleted the kilic-bn254 branch November 30, 2022 07:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fix Functionality that fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants