Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: variable-time prover #19

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

AaronFeickert
Copy link
Collaborator

Prover operations make some attempt at avoiding timing side-channel attacks through the use of constant-time multiscalar multiplication operations that are used in several places. While this is useful in general, some callers might not need this, and would prefer a speedier prover.

This PR adds a prove_vartime function that uses variable-time multiscalar multiplication, which cuts the proving time by about half. A simple refactoring means it and the existing prove function are now trivial wrappers to avoid code duplication.

Tests and benchmarks are updated to account for this.

@AaronFeickert AaronFeickert merged commit 1599b97 into tari-project:main Jan 5, 2024
5 checks passed
@AaronFeickert AaronFeickert deleted the vartime branch January 5, 2024 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant