fix: remove unnecesasry int conversion in the bulletproof.go (#419)

Co-authored-by: wjrjerome <wjrjerome@babylonchain.io>
This commit is contained in:
Banana-J 2024-02-06 22:13:28 +11:00 committed by GitHub
parent 3e0deddfaa
commit ea7d5cc9ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -830,7 +830,7 @@ func (ipp *InnerProdArg) Deserialize(proof []byte, numChallenges int) error {
if len(proof) <= (offset + 32*numChallenges) {
return errors.New("input data too short")
}
for i := 0; i < int(numChallenges); i++ {
for i := 0; i < numChallenges; i++ {
ipp.Challenges = append(ipp.Challenges, new(big.Int).SetBytes(proof[offset:offset+32]))
offset += 32
}