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

CurveSNARK1 for Go #1

Merged
merged 3 commits into from
May 15, 2018
Merged

CurveSNARK1 for Go #1

merged 3 commits into from
May 15, 2018

Conversation

pdyraga
Copy link
Member

@pdyraga pdyraga commented May 15, 2018

Refs keep-network/keep-core#31

This PR is the second step towards exposing CurveSNARK1 to our Go code.

The plan is as follows:

  1. Expose CurveSNARK1 from our fork of bn - done in CurveSNARK1 for Go bn#1
  2. Expose CurveSNARK1 from our fork of go-dfinity-crypto <- we are here!

I added CurveSNARK1 case to MCL test. You can run all tests with:

go test ./... -v

bls/mcl.go Outdated
@@ -9,6 +9,9 @@ import "C"
import "fmt"
import "unsafe"

// CurveSNARK1 --

Choose a reason for hiding this comment

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

Probably worth adding here “curve for SNARKs; corresponds to the curve primitives on the Ethereum VM”.

Choose a reason for hiding this comment

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

Or “original libsnark curve, ...”

@Shadowfiend Shadowfiend merged commit 1cfc23c into master May 15, 2018
@Shadowfiend Shadowfiend deleted the snark1-for-go-step2 branch May 15, 2018 21:34
Shadowfiend added a commit to keep-network/keep-core that referenced this pull request May 17, 2018
CurveSNARK1 exposed from mcl

After merging keep-network/go-dfinity-crypto#1 we update revision
constraint for go-dfinity-crypto to the newest one and switch the
Init curve to CurveSNARK1.
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.

2 participants