Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
9644c2e
feat: add kb8 curve
yelhousni Apr 14, 2026
34d758c
feat: add multiset hash on kb8
yelhousni Apr 14, 2026
0f25786
feat: add y-increment multiset hash
yelhousni Apr 14, 2026
4e642e4
perf: use addchain
yelhousni Apr 15, 2026
9c3ef02
perf: use recursive torus cbrt
yelhousni Apr 15, 2026
ba5549b
refactor: move code to fields/
yelhousni Apr 15, 2026
7d968a8
perf: use fused exp and inverse-free recovery
yelhousni Apr 15, 2026
b3c96a9
perf: recursive Cbrt and fused 2 ops
yelhousni Apr 15, 2026
c28b0cf
perf: use addchains in upper layers
yelhousni Apr 15, 2026
d542bcd
perf: fixed regression
yelhousni Apr 17, 2026
be10294
refactor: clean code
yelhousni Apr 21, 2026
ac233e9
Merge branch 'master' into feat/kb8
yelhousni Apr 21, 2026
e95cb0e
refactor: make linter happy
yelhousni Apr 21, 2026
4eac2c8
refactor: clean code generation
yelhousni Apr 22, 2026
f523939
refactor: clean code generation
yelhousni Apr 22, 2026
6418427
fix: Cbrt(0)=0
yelhousni Apr 22, 2026
41a9850
Merge branch 'master' into feat/kb8
yelhousni May 4, 2026
a985438
refactor: precomputed constants in e16 cbrt
yelhousni May 5, 2026
96e5013
refactor: clean code and remove dead code
yelhousni May 5, 2026
569c9ef
refactor: apply review suggestions
yelhousni May 7, 2026
6fbf3b6
Merge branch 'master' into feat/kb8
yelhousni May 18, 2026
8cad06c
feat: add vector/pq multiset hash
yelhousni May 18, 2026
edf8428
chore: go generate
yelhousni May 18, 2026
52805f4
Merge branch 'master' into feat/kb8
yelhousni May 18, 2026
d29036c
refactor: exports and inlines
yelhousni May 18, 2026
913fcc2
fix: make linter happy
yelhousni May 18, 2026
fe90751
fix(bn254): make MaxUint32 check compile on 32-bit GOARCH
yelhousni May 19, 2026
b31bf79
Merge branch 'master' into feat/kb8
yelhousni May 21, 2026
f973383
refactor: address Ivo review
yelhousni May 21, 2026
52d6828
perf: optimize Fp8 arithmetic
yelhousni May 21, 2026
e10b336
fix: encoding and overflow slot
yelhousni May 21, 2026
601179f
Merge branch 'master' into feat/kb8
yelhousni May 21, 2026
61d70d0
refactor: rename kb8 to octobear
yelhousni May 21, 2026
8d7eba4
ci: whitelist octobear spelling
yelhousni May 21, 2026
cd2bfba
fix: cbrt receiver and vPoseidon2-encoding injectiveness
yelhousni May 27, 2026
aae27cf
refactor: dead code cleanup
yelhousni May 27, 2026
d3f2a02
refactor: address Ivo's review
yelhousni May 28, 2026
a5a9665
Merge branch 'master' into feat/kb8
yelhousni May 28, 2026
5aa8cf4
docs: clean refs
yelhousni May 28, 2026
f6b0b47
docs: q=2mod3 gives unique cbrt
yelhousni Jun 1, 2026
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 .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ linters:
excludes:
- G115
- G602
misspell:
ignore-rules:
- octobear
exclusions:
generated: disable
presets:
Expand Down
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 octobear elliptic curves implementations.
//
// Also
//
Expand Down Expand Up @@ -32,6 +32,7 @@ const (
SECP256K1
GRUMPKIN
SECP256R1
OCTOBEAR
)

// 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.

11 changes: 11 additions & 0 deletions ecc/octobear/fp/doc.go

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

60 changes: 60 additions & 0 deletions ecc/octobear/fp/fp.go

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

49 changes: 49 additions & 0 deletions ecc/octobear/fr/arith.go

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

13 changes: 13 additions & 0 deletions ecc/octobear/fr/cbrt_extra_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package fr

import (
"testing"

"github.com/stretchr/testify/require"
)

func TestElementCbrtZero(t *testing.T) {
var zero, got Element
require.NotNil(t, got.Cbrt(&zero))
require.True(t, got.IsZero())
}
46 changes: 46 additions & 0 deletions ecc/octobear/fr/doc.go

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

Loading
Loading