-
Notifications
You must be signed in to change notification settings - Fork 31
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
Added max_measurement
field to Prio3Sum
type
#1150
Conversation
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.
FYI, I think this'll need to be rebased to pick up some Clippy lint fixes.
The other methods in the Type
implementation look good. Most of these get checked by the FLP unit tests or valid_call_check()
, etc., but maybe not all. I checked them against the definitions in the spec, with formulas using gadget calls, gadget arities, etc.
The old
Prio3Sum
let summands anything <2^bits. In newer drafts, the type now has amax_measurement
parameter that can constrain the size of summands. Closes a subtask of #1122.Some open questions:
input_len()
,proof_len()
, andeval_output_len()
correctly, but what about the other methods? Would I know via unit tests if they were wrong?input_len()
to find out the correct measurement size to use. Is that an acceptable API for Mastic? I'm not familiar, so this might be fine.