-
Notifications
You must be signed in to change notification settings - Fork 38
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
Introduce LookupRangeCheckConfig
s for each Sinsemilla advice column
#133
Conversation
c9d34c7
to
5fbc14e
Compare
6450edf
to
c43c91b
Compare
…t level These instructions were not making any assignments; instead, they were calling through to witness_message_piece_field(). This PR also renames the witness_message_piece_field() instruction to witness_message_piece().
Inputs to Sinsemilla often need to be decomposed and range-constrained.
To be replaced by the public inputs API.
5fbc14e
to
9b47bd0
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 modulo some mis-merges and minor comments.
|
||
impl SinsemillaConfig { | ||
pub fn advices(&self) -> [Column<Advice>; 5] { | ||
[self.bits, self.lambda_1, self.lambda_2, self.x_a, self.x_p] |
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.
Rebase mis-merge; this is altered and documented in ff63747 (an unrelated commit). Move those changes into this PR.
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 actually don't think the advices()
method is needed anymore. It was only being used to construct lookup_config
s, which have now been made native to the SinsemillaConfig
.
The advices()
method is now only used to construct the CondSwapConfig
, so I've moved it into the MerkleChip PR (#98).
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
Co-authored-by: Jack Grigg <[email protected]>
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-utACK 12cef17
Based on #132.
Inputs to Sinsemilla are commonly decomposed into subpieces and packed into field elements. These subpieces have to be range-checked. This PR includes a
LookupRangeCheckConfig
for each Sinsemilla advice column, to enable subpieces to be looked up in any advice column.This PR also moves certain APIs from the instruction level to the gadget level.