-
Notifications
You must be signed in to change notification settings - Fork 209
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
rangeproof: clean up legacy rangeproof code #160
base: master
Are you sure you want to change the base?
rangeproof: clean up legacy rangeproof code #160
Commits on Mar 6, 2022
-
rangeproof: add a bunch more testing
Add two new fixed rangeproof vectors; check that various extracted values are correct; add a test for creating and verifying single-value proofs.
Configuration menu - View commit details
-
Copy full SHA for d2d0068 - Browse repository at this point
Copy the full SHA d2d0068View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb1a4bb - Browse repository at this point
Copy the full SHA cb1a4bbView commit details -
rangeproof: remove rewinding ability to access the "extra" 64 bytes o…
…f sidechannel space This space has never been usable, in the sense that rangeproof_sign would refuse to use it, and it complicates the rewinding logic a fair bit to retain the ability of the rewinder to access it. This does result in a minor API change, which is that the returned `m_len` variable, which indicates the total size of the rangeproof sidechannel, is reduced by 64 bytes for any proof that covers a multiple-of-4 number of bit. This change is reflected as a change in the unit tests.
Configuration menu - View commit details
-
Copy full SHA for 390a53d - Browse repository at this point
Copy the full SHA 390a53dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ddcf41 - Browse repository at this point
Copy the full SHA 9ddcf41View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17037ff - Browse repository at this point
Copy the full SHA 17037ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for ecdf4c5 - Browse repository at this point
Copy the full SHA ecdf4c5View commit details -
Copied some more logic from the 2015-era code.
Configuration menu - View commit details
-
Copy full SHA for e36d073 - Browse repository at this point
Copy the full SHA e36d073View commit details -
rangeproof: refactor
rangeproof_genrand
into two functionsThis is purely to reduce the number of arguments being passed into one function at once. Also improves const-correctness.
Configuration menu - View commit details
-
Copy full SHA for 1e5c300 - Browse repository at this point
Copy the full SHA 1e5c300View commit details -
rangeproof: split genrand into genrand_sign and genrang_rewind
Also eliminate `prep` array from genrand_sign
Configuration menu - View commit details
-
Copy full SHA for 05a618b - Browse repository at this point
Copy the full SHA 05a618bView commit details -
borromean: move k-value trickery into borromean_sign
Reduces stack usage of rangeproof_sign by 1056 bytes, is a bit safer as it doesn't require the caller of borromean_sign to know which indices are going to be overwritten, is a net-negative code diff, and reduces the amount of shared data between the borrom ean logic and its callers.
Configuration menu - View commit details
-
Copy full SHA for 5e36b32 - Browse repository at this point
Copy the full SHA 5e36b32View commit details