From 40d71e9e29c3c534f39323599c86d2333373ddcf Mon Sep 17 00:00:00 2001 From: Kevin Jue Date: Tue, 19 Dec 2023 11:07:36 -0800 Subject: [PATCH] fix for V-SCT-VUL-025 --- poseidon/bn254.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poseidon/bn254.go b/poseidon/bn254.go index 4291efd..4975415 100644 --- a/poseidon/bn254.go +++ b/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)