-
Notifications
You must be signed in to change notification settings - Fork 39
Address review comments in #1061 #1108
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: kunxian xia <[email protected]>
Co-authored-by: Ming <[email protected]>
- simplify index computation of affine_add(left, right) - allocate buffer once and parallel initialization
#1061 Cleanup - [x] clippy fixes - [x] remove old unused routines for generating witness for the ecc summation tower tree. Note this approach is abandoned. We prefer to pack $log_2(N)$ layers in one layer using the relation `p[1, b] = ec_add(p[0,b], p[1,b])` (first proposed in Quark paper.
| cb.condition_require_zero( | ||
| || "global_write = true => shard = instance.shard", | ||
| is_global_write.expr(), | ||
| shard.expr() - Expression::Instance(cur_shard), |
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.
main sumcheck does not support public inputs now.
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.
please try this way
let cur_shard = cb.query_shard_id();
cur_shard.expr() // this return `Expression::InstanceScalar()` which make thing work in sumcheck| } | ||
|
|
||
| #[inline(always)] | ||
| pub fn cur_shard(&self) -> usize { |
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.
nitpick: cur_shard_id() or shard_id() better
| cb.condition_require_zero( | ||
| || "global_write = true => shard = instance.shard", | ||
| is_global_write.expr(), | ||
| shard.expr() - Expression::Instance(cur_shard), |
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.
please try this way
let cur_shard = cb.query_shard_id();
cur_shard.expr() // this return `Expression::InstanceScalar()` which make thing work in sumcheck
Items
is_ram_registeris boolean.shard < cur_shard.shard = cur_shardwherecur_shardis fetched from public values.