Skip to content

crypto/bn256: fix generator on G1#15591

Merged
fjl merged 1 commit into
ethereum:masterfrom
mattdf:bn256-generator-fix
Dec 1, 2017
Merged

crypto/bn256: fix generator on G1#15591
fjl merged 1 commit into
ethereum:masterfrom
mattdf:bn256-generator-fix

Conversation

@mattdf
Copy link
Copy Markdown
Member

@mattdf mattdf commented Nov 30, 2017

Generator in the current lib uses -2 as the y point when doing ScalarBaseMult, this makes it so that points/signatures generated from libs like py_ecc don't match/validate as pretty much all other libs (including libsnark) have (1, 2) as the standard generator.

This does not affect consensus as the generator is never used in the VM, points are always explicitly defined and there is not ScalarBaseMult op - it only makes it so that doing "import github.com/ethereum/go-ethereum/crypto/bn256" doesn't generate bad points in userland tools.

@GitCop
Copy link
Copy Markdown

GitCop commented Nov 30, 2017

Thank you for your contribution! Your commits seem to not adhere to the repository coding standards

  • Commit: b2686ce
  • Commits must be prefixed with the package(s) they modify
  • Commit subjects should be kept under 100 characters

Please check the contribution guidelines for more details.


This message was auto-generated by https://gitcop.com

@mattdf mattdf changed the title crypto/bn256 - fix generator on G1 to match standard generator crypto - fix generator on G1 Nov 30, 2017
@mattdf mattdf changed the title crypto - fix generator on G1 crypto: fix generator on G1 Nov 30, 2017
@fjl fjl changed the title crypto: fix generator on G1 crypto/bn256: fix generator on G1 Dec 1, 2017
@fjl fjl merged commit 80c6dfc into ethereum:master Dec 1, 2017
HarryR pushed a commit to clearmatics/bn256 that referenced this pull request Dec 4, 2017
@karalabe karalabe added this to the 1.8.0 milestone Dec 14, 2017
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.

5 participants