You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When gens_capacity becomes too large when generating BulletProofGens, 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:
samkim-crypto
changed the title
[zk-token-sdk] Potential overflow when gens_capcity for the bulletproof generators become too large
[zk-token-sdk] Potential overflow when gens_capcity for the bulletproof generators become too large (ottersec #6)
Oct 3, 2023
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: