Skip to content

Commit bca0dcf

Browse files
committed
fix rebase error
1 parent 0624387 commit bca0dcf

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

compatible/saferith.go

Whitespace-only changes.

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ require (
66
github.com/cloudflare/circl v1.6.1
77
github.com/consensys/gnark-crypto v0.19.2
88
github.com/cronokirby/saferith v0.33.0
9-
github.com/cronokirby/saferith v0.33.0
109
github.com/jonboulle/clockwork v0.5.0
1110
github.com/kilic/bls12-381 v0.1.0
1211
github.com/stretchr/testify v1.11.1

pairing/bls12381/circl/scalar.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ package circl
22

33
import (
44
"crypto/cipher"
5+
56
"github.com/cloudflare/circl/ecc/bls12381"
67
"go.dedis.ch/kyber/v4"
7-
"go.dedis.ch/kyber/v4/compatible"
8+
"go.dedis.ch/kyber/v4/compatible/compatible_mod"
9+
810
"io"
911
)
1012

@@ -120,6 +122,7 @@ func (s *Scalar) ByteOrder() kyber.ByteOrder {
120122
return kyber.BigEndian
121123
}
122124

123-
func (s *Scalar) GroupOrder() *compatible.Int {
124-
return compatible.NewInt(0).SetBytes(bls12381.Order())
125+
func (s *Scalar) GroupOrder() *compatible_mod.Mod {
126+
mod := new(compatible_mod.Mod)
127+
return mod.SetBytes(bls12381.Order())
125128
}

0 commit comments

Comments
 (0)