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: check witness consistency in constant time #49

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

AaronFeickert
Copy link
Collaborator

This PR adds a constant-time check of witness consistency to the prover. It does this by iterating over the entire input set and doing a conditional assignment using the secret index. This should remove any timing effects caused by vector lookups.

Note that this is only used in the constant-time prover functions, so variable-time proving is unaffected.

@AaronFeickert AaronFeickert force-pushed the ct-witness-check branch 3 times, most recently from c009822 to b12485a Compare February 6, 2024 20:13
@AaronFeickert AaronFeickert marked this pull request as draft February 6, 2024 20:19
@AaronFeickert AaronFeickert marked this pull request as ready for review February 6, 2024 21:00
@AaronFeickert AaronFeickert merged commit 6acf034 into tari-project:main Feb 6, 2024
6 checks passed
@AaronFeickert AaronFeickert deleted the ct-witness-check branch February 6, 2024 21:01
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