Ian Goldberg
|
3adab6c783
Change the nomenclature of "params" to "instance" to match the sigma_rs crate
|
3 月之前 |
Ian Goldberg
|
027760ffde
Start on the documentation of the main sigma_compiler macro
|
3 月之前 |
Ian Goldberg
|
f0104198ed
Add sigma_compiler_{prover,verifier} macros to only emit one party's code
|
3 月之前 |
Ian Goldberg
|
82058d6cda
Only emit the protocol_witness function if emit_prover is set
|
3 月之前 |
Ian Goldberg
|
384b93e03a
Remove some commented-out test code
|
3 月之前 |
Ian Goldberg
|
edc6d2b636
Make the dump feature flag work again
|
3 月之前 |
Ian Goldberg
|
d21bea09f9
Flip multiplications around to suit sigma_rs
|
3 月之前 |
Ian Goldberg
|
dcf9c81a49
Code generation to use the sigma-rs API
|
3 月之前 |
Ian Goldberg
|
b2d950a090
The underlying sigma-rs crate supports scalar_var * scalar_const but not the other way around, so change the tests to do that
|
3 月之前 |
Ian Goldberg
|
0f1e6699cb
Typo fix to range proof generated statement
|
3 月之前 |
Ian Goldberg
|
f77454f70e
Simplify the proto_witness_codegen API a bit
|
3 月之前 |
Ian Goldberg
|
9bf1745c9a
Move leaf_true, is_leaf_true, and leaf_true_test into StatementTree
|
3 月之前 |
Ian Goldberg
|
8222e13d60
Ensure sigma_rs is visible to the generated code
|
3 月之前 |
Ian Goldberg
|
828b37a001
Generalize expr_type_tokens to expr_type_tokens_id_closure
|
3 月之前 |
Ian Goldberg
|
82a074f53c
Start on the codegen glue to the sigma-rs API
|
3 月之前 |
Ian Goldberg
|
5d0e38b711
Allow sigma::codegen to modify the StatementTree
|
3 月之前 |
Ian Goldberg
|
b5fc2df4c9
prove() and verify() now take a session id as an additional argument
|
3 月之前 |
Ian Goldberg
|
cf329f2828
Don't mark the generated r and s variables as "rand" since they have correlated values
|
3 月之前 |
Ian Goldberg
|
d8d24b7ac9
Finish range proofs
|
3 月之前 |
Ian Goldberg
|
9a00db39b3
Add a range demo test
|
3 月之前 |
Ian Goldberg
|
46e240d6d4
Compute all the variables needed for range proofs
|
3 月之前 |
Ian Goldberg
|
110a9eacb1
Functions to compute a bit representation for a range proof
|
3 月之前 |
Ian Goldberg
|
37afe1ede0
Constant-time and variable-time runtime bit decomposition for range proofs
|
3 月之前 |
Ian Goldberg
|
d9ca5c733f
Convert commitments and randomness of one LinScalar to that of another LinScalar of the same variable
|
3 月之前 |
Ian Goldberg
|
3247addd99
Make clippy happier
|
3 月之前 |
Ian Goldberg
|
ed1a2ab347
Implement and test LinScalar::to_expr()
|
3 月之前 |
Ian Goldberg
|
90f3f371de
Find or generate a Pedersen commitment to start handling range statements
|
3 月之前 |
Ian Goldberg
|
d080daa250
PedersenAssignment::var() convenience function
|
3 月之前 |
Ian Goldberg
|
af0748ec23
Prepare for handing range statements by finding all Pedersen assignment statements in the StatementTree
|
3 月之前 |
Ian Goldberg
|
1a6011d2f7
Clarify in a comment that ranges must always have strictly more than 1 element in them
|
3 月之前 |