Skip to content
Open
Show file tree
Hide file tree
Changes from 16 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: 2 additions & 1 deletion ecc/ecc.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2020-2025 Consensys Software Inc.
// Licensed under the Apache License, Version 2.0. See the LICENSE file for details.

// Package ecc provides bls12-381, bls12-377, bn254, bw6-761, bls24-315, bls24-317, bw6-633, secp256k1, secp256r1, grumpkin and stark-curve elliptic curves implementations.
// Package ecc provides bls12-381, bls12-377, bn254, bw6-761, bls24-315, bls24-317, bw6-633, secp256k1, secp256r1, grumpkin, stark-curve and kb8 elliptic curves implementations.
//
// Also
//
Expand Down Expand Up @@ -32,6 +32,7 @@ const (
SECP256K1
GRUMPKIN
SECP256R1
KB8
)

// MultiExpConfig enables to set optional configuration attribute to a call to MultiExp
Expand Down
7 changes: 7 additions & 0 deletions ecc/ecc_field.go

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

42 changes: 42 additions & 0 deletions ecc/kb8/fp/fp.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package fp
Comment thread
yelhousni marked this conversation as resolved.

import (
"math/big"

kb "github.com/consensys/gnark-crypto/field/koalabear"
)

type Element = kb.Element
type Vector = kb.Vector

const (
Bits = kb.Bits
Bytes = kb.Bytes
Limbs = kb.Limbs
)

var BigEndian = kb.BigEndian

func Modulus() *big.Int {
return kb.Modulus()
}

func One() Element {
return kb.One()
}

func BatchInvert(a []Element) []Element {
return kb.BatchInvert(a)
}

func Generator(m uint64) (Element, error) {
return kb.Generator(m)
}

func Butterfly(a, b *Element) {
kb.Butterfly(a, b)
}

func MulBy3(x *Element) {
kb.MulBy3(x)
}
49 changes: 49 additions & 0 deletions ecc/kb8/fr/arith.go

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

46 changes: 46 additions & 0 deletions ecc/kb8/fr/doc.go

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

Loading
Loading