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

feat: add Grumpkin elliptic curve (2-cycle with BN254) #625

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ecc/ecc.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const (
BW6_633
STARK_CURVE
SECP256K1
GRUMPKIN
)

// Implemented return the list of curves fully implemented in gnark-crypto
Expand Down Expand Up @@ -91,6 +92,8 @@ func (id ID) config() *config.Curve {
return &config.STARK_CURVE
case SECP256K1:
return &config.SECP256K1
case GRUMPKIN:
return &config.GRUMPKIN
default:
panic("unimplemented ecc ID")
}
Expand Down
1 change: 1 addition & 0 deletions ecc/ecc.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* BLS12-381 (Zcash)
* BN254 (Ethereum)
* GRUMPKIN (2-cycle with BN254)
* BLS12-377 (ZEXE)
* BW6-761 (2-chain with BLS12-377)
* BLS24-315
Expand Down
17 changes: 17 additions & 0 deletions ecc/grumpkin/ecdsa/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

294 changes: 294 additions & 0 deletions ecc/grumpkin/ecdsa/ecdsa.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading