mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
fix: remove unnecesasry int conversion in the bulletproof.go (#419)
Co-authored-by: wjrjerome <wjrjerome@babylonchain.io>
This commit is contained in:
parent
3e0deddfaa
commit
ea7d5cc9ad
1 changed files with 1 additions and 1 deletions
|
|
@ -830,7 +830,7 @@ func (ipp *InnerProdArg) Deserialize(proof []byte, numChallenges int) error {
|
||||||
if len(proof) <= (offset + 32*numChallenges) {
|
if len(proof) <= (offset + 32*numChallenges) {
|
||||||
return errors.New("input data too short")
|
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]))
|
ipp.Challenges = append(ipp.Challenges, new(big.Int).SetBytes(proof[offset:offset+32]))
|
||||||
offset += 32
|
offset += 32
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue