mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-03-12 23:18:36 +00:00
zkpbinding: remove range usage from smartcontract
Reverting a part of 1b83dc2
, because ranging over integers is not
supported by smart contract compiler, ref. #3525.
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
This commit is contained in:
parent
847479e6a1
commit
83a02fc0c0
1 changed files with 2 additions and 2 deletions
|
@ -133,11 +133,11 @@ func VerifyProof(a []byte, b []byte, c []byte, publicInput [][]byte) bool {
|
|||
panic("error: inputlen or iclen")
|
||||
}
|
||||
icPoints := make([]crypto.Bls12381Point, iclen)
|
||||
for i := range iclen {
|
||||
for i := range icPoints {
|
||||
icPoints[i] = crypto.Bls12381Deserialize(ic[i])
|
||||
}
|
||||
acc := icPoints[0]
|
||||
for i := range inputlen {
|
||||
for i := range publicInput {
|
||||
scalar := publicInput[i] // 32-bytes LE field element.
|
||||
temp := crypto.Bls12381Mul(icPoints[i+1], scalar, false)
|
||||
acc = crypto.Bls12381Add(acc, temp)
|
||||
|
|
Loading…
Add table
Reference in a new issue