-
Notifications
You must be signed in to change notification settings - Fork 490
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
Make stateproof verifier snark friendly #3895
Merged
id-ms
merged 42 commits into
algorand:feature/stateproofs
from
id-ms:make-stateproof-verifier-snark-friendly
May 10, 2022
Merged
Changes from 29 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
ebd1016
change coin filps to be shake(sumhash(seed))
5446cae
add sequence of coin positions to the cert
4363c91
compute CC security using implied provenWeight
3ee4616
create a log2 appr func
6f4de56
fix stateproof message issues.
92ce531
remove proven weight form the coin hash
a21f7b7
fix cc test
f8168fe
use reject sampling in coin hash.
0afd674
use logarithmic approximation
b548344
refactoring
27c4e11
builder uses same appox function
b4c9be4
comments and doc
4ce22b6
handle negative value in number of reveals equation
40a9de2
add lnProvenWe to coinhash
2f275f3
fixed hash representation for coinhash
c76184b
fix CC benchmark
ac4df71
refactor
8911552
remove old numberofreveals code
593b62f
change secKQ to 256
e794180
fix CRs
c13ce05
CR fixes + rename
106e6f4
more CR fix
a3507ad
refactor the trusted params on the verifer.
3789b44
more refactoring
ec0543c
fix flaky test
6e35aad
remove Param structure
867d2cc
more fixes
cffa28a
update falcon lib + use byte as salt version
dd70755
add coinhash kat generator
485b44d
fix some CR comments
2cea300
clear out some documentation
2f03f65
Apply suggestions from code review
id-ms b566381
fix comments
ab2a2ff
refactor rejection sampling
112e5e7
CR fix
b7f38d9
refactoring
25a33d3
fix comments
30ee541
reduce the bytes allocated for stateproof message
ed9f141
Apply suggestions from code review
id-ms 5ae415b
fix test since stateproof message hash was reduce
32a8164
fix CR comments
9c6a06a
more refactoring
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returning the error directly like this is problematic. When eventually the error is logged or reported to the user, it will be very difficult, if not impossible, to know where the error came from.
The convention followed is to wrap the received error before reporting it upwards.
For example, see below (which should be %w and not %v):