Skip to content

Commit

Permalink
fix: remove unnecesasry int conversion in the bulletproof.go (ethereu…
Browse files Browse the repository at this point in the history
…m#419)

Co-authored-by: wjrjerome <wjrjerome@babylonchain.io>
  • Loading branch information
wjrjerome and jrwbabylonlab authored Feb 6, 2024
1 parent 3e0dedd commit ea7d5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/privacy/bulletproof.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ea7d5cc

Please sign in to comment.