Browse Source

fix for V-SCT-VUL-025

main
Kevin Jue 1 year ago
parent
commit
40d71e9e29
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      poseidon/bn254.go

+ 1
- 1
poseidon/bn254.go

@ -79,7 +79,7 @@ func (c *BN254Chip) HashOrNoop(input []gl.Variable) BN254HashOut {
alpha = new(big.Int).Mul(alpha, alpha)
for i, inputElement := range input {
mulFactor := new(big.Int).Exp(alpha, big.NewInt(int64(i)), nil)
returnVal = c.api.MulAcc(returnVal, inputElement, mulFactor)
returnVal = c.api.MulAcc(returnVal, inputElement.Limb, mulFactor)
}
return BN254HashOut(returnVal)

Loading…
Cancel
Save