2 parents c333cbb + 13a8bd8 commit a937599Copy full SHA for a937599
1 file changed
token/core/zkatdlog/nogh/v1/crypto/rp/bulletproof/ipa.go
@@ -81,10 +81,10 @@ func (ipa *IPA) Validate(curve mathlib.CurveID) error {
81
if ipa.R == nil {
82
return errors.New("invalid IPA proof: nil R")
83
}
84
- if err := math.CheckZrElements(ipa.L, curve, uint64(len(ipa.L))); err != nil {
+ if err := math.CheckElements(ipa.L, curve, uint64(len(ipa.L))); err != nil {
85
return errors.Wrapf(err, "invalid IPA proof: invalid L elements")
86
87
- if err := math.CheckZrElements(ipa.R, curve, uint64(len(ipa.R))); err != nil {
+ if err := math.CheckElements(ipa.R, curve, uint64(len(ipa.R))); err != nil {
88
return errors.Wrapf(err, "invalid IPA proof: invalid R elements")
89
90
0 commit comments