The discrete log computation setting has an optimization parameter compression_batch_size, which specifies how fast the discrete log algorithm traverses a list of potential solutions for decryption. The default is set to 32.
If the compression_batch_size parameter is set to 0, the program panics.
Note: This is client side logic and does not impact on-chain programs.
Proposed Solution
Add a check on compression_batch_size in the discrete log logic so that the program errors gracefully.
Problem
The discrete log computation setting has an optimization parameter
compression_batch_size
, which specifies how fast the discrete log algorithm traverses a list of potential solutions for decryption. The default is set to 32.If the
compression_batch_size
parameter is set to 0, the program panics.Note: This is client side logic and does not impact on-chain programs.
Proposed Solution
Add a check on
compression_batch_size
in the discrete log logic so that the program errors gracefully.