This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
[zk-token-sdk] Potential overflow when gens_capcity
for the bulletproof generators become too large (ottersec #6)
#33509
Labels
stale
[bot only] Added to stale content; results in auto-close after a week.
Problem
When
gens_capacity
becomes too large when generatingBulletProofGens
, then this could panic due to overflow.Note: For token2022 application, we only use
u64/u128/u256
batched range proofs, which can't panic, but it would be good to fix a potential panic in case range proof is used elsewhere more generally.Proposed Solution
Introduce a maximum cap on
gens_capacity
.The text was updated successfully, but these errors were encountered: