-
Notifications
You must be signed in to change notification settings - Fork 8
Translation keys #36
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: main
Are you sure you want to change the base?
Translation keys #36
Conversation
| Option<SectionDefinition>, // register sections | ||
| Option<SectionDefinition>, // code sections | ||
| ), | ||
| Halt { |
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.
Good decision to move from tuples to structs
| let last_step = stack.define(16, "prover_last_step"); | ||
| let conflict_step = stack.define(16, "prover_conflict_step_tk"); | ||
| let read_1 = stack.define(8, "prover_read_1_value"); | ||
| // technically we don't need to check the status code since execute_step will fail if we call a halt without success |
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.
agree, but very subtle, best to keep validation
|
|
||
| // When the prover commits the final step as halt but it's is not a halt-success instruction the verifier can challenge it. | ||
| // TODO CHECK: The opcode needs to be provided and compared with the static opcode given by the PC on the proper leaf when expanding the trace | ||
| // WOTS_PROVER_FINAL_STEP:16 == WOTS_PROVER_TRACE_STEP:16 && ( WOTS_PROVER_READ_VALUE_1:8 | WOTS_PROVER_READ_VALUE_2:8 | WOTS_PROVER_OPCODE:8 != 93 | 0 | 115 ) |
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 adjust this comments with the logic changes. I see the hash comparison added
| shift(stack, &tables.rshift, BITS_NIBBLE - right_size); | ||
| } | ||
|
|
||
| pub fn var_to_decisions_in_altstack( |
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.
add comments of the logic
| } | ||
|
|
||
| #[test] | ||
| fn test_var_to_decisions_in_altstack() { |
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.
add edge case tests. 64 bits step, 0 step, max nary, 0 last round, etc
Adds translation keys handling, some missing challenges, and small fixes.