Skip to content

Conversation

@crivasr
Copy link
Contributor

@crivasr crivasr commented Nov 27, 2025

Adds translation keys handling, some missing challenges, and small fixes.

Option<SectionDefinition>, // register sections
Option<SectionDefinition>, // code sections
),
Halt {
Copy link
Collaborator

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
Copy link
Collaborator

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 )
Copy link
Collaborator

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(
Copy link
Collaborator

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() {
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants