File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ package circl
22
33import (
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}
You can’t perform that action at this time.
0 commit comments