-
Notifications
You must be signed in to change notification settings - Fork 37
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
Sinsemilla chip with HashDomain #67
Conversation
f90cee2
to
334c190
Compare
7b0155c
to
2ad868a
Compare
2ad868a
to
c75bb83
Compare
3a068cf
to
4016e7b
Compare
2395853
to
a9f51be
Compare
c942bb1
to
46066ae
Compare
a9f51be
to
c977184
Compare
46066ae
to
cacf755
Compare
c977184
to
c76db8f
Compare
cacf755
to
4c032a1
Compare
c76db8f
to
6cca5bc
Compare
6cca5bc
to
b2408ab
Compare
Codecov Report
@@ Coverage Diff @@
## ecc-chip #67 +/- ##
============================================
+ Coverage 78.25% 85.32% +7.06%
============================================
Files 36 56 +20
Lines 1964 4319 +2355
============================================
+ Hits 1537 3685 +2148
- Misses 427 634 +207
Continue to review full report at Codecov.
|
b2408ab
to
acc7bd1
Compare
acc7bd1
to
fc36949
Compare
6f605a7
to
058e75b
Compare
fc36949
to
afcd79a
Compare
This toggles the assignment of q_s2 on the last row of each piece. We assign q_s2 = 2 on the last row of the final piece, and q_s2 = 0 on the last row of other pieces. This allows us to process the final_piece in the main loop together with the other pieces. Co-authored-by: Jack Grigg <jack@electriccoin.co>
hash_piece() is an internal API, which means its caller hash_message() is working in the same region. We rely on the caller to have already assigned each piece's initial x_a at the correct offset before making the call to hash_piece(). Co-authored-by: Jack Grigg <jack@electriccoin.co>
The gates "Secant line" and "Sinsemilla gate" were using the same selectors and could be combined. Co-authored-by: Jack Grigg <jack@electriccoin.co>
Co-authored-by: Daira Hopwood <daira@jacaranda.org> Co-authored-by: Jack Grigg <jack@electriccoin.co>
e58fc69
to
002596f
Compare
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.
utACK. One small suggested refactor; the rest is doc comment fixes.
This comment has been minimized.
This comment has been minimized.
This allows the MockProver to see the fixed_y_q query as semantically connected to q_sinsemilla1. Co-authored-by: Jack Grigg <jack@electriccoin.co>
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.
ACK bd08808.
// lambda2^2 - (x_a_next + x_r + x_a_cur) = 0 | ||
let secant_line = | ||
lambda_2_cur.clone().square() - (x_a_next.clone() + x_r + x_a_cur.clone()); |
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.
Technically this is implementing two secant lines, because x_r is itself computed by a secant line. ("Secant" means a line between two distinct points on a curve, extended to infinity in both directions.) I think this naming is fine though.
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.
utACK bd08808 with minor comments.
Why does this show some fixed columns being assigned outside a region? (or am I misinterpreting it?) |
They aren't. Notice those fixed columns line up with equivalent rectangles in the advice columns. This is just an artifact of non-sequential columns being forced to take a sequence for rendering purposes; I split the same region across several boxes. It's clearer when labels are turned on, but in this case the lables overlapped too much and were distracting. It will be easier with an interactive viewer to indicate which boxes are part of the same region. |
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
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.
I resolved a remaining minor comment in 8af8447.
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.
re-ACK 8af8447 (trivial change)
Part of #96. This PR only covers
SinsemillaHash
, notSinsemillaCommit
.The
SinsemillaCommit
functionality is in #118.