diff --git a/crypto/bn256/cloudflare/bn256.go b/crypto/bn256/cloudflare/bn256.go index 0e451339fa..38822a76bf 100644 --- a/crypto/bn256/cloudflare/bn256.go +++ b/crypto/bn256/cloudflare/bn256.go @@ -388,6 +388,7 @@ func (e *GT) Marshal() []byte { if e.p == nil { e.p = &gfP12{} + e.p.SetOne() } ret := make([]byte, numBytes*12)