Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Use pre-computed multiplication tables for generator where possible (secret key -> pk, generating public image of nonce in signing/verification, etc). Also pre-compute DlogProverInput.public_image() to avoid repeated EC operations in signing (helps performance when there are many secrets in Wallet).
Some benchmarks (Wallet with 1000 secrets, signing N inputs):
Some small improvements to verification as well, tested on dbd86fdce57f3a5124e88ec1ee4b7289e450e059e21a74c303bf13bf0b924945, time to verify is down from 0.2s to 0.17s