Skip to content

Conversation

letypequividelespoubelles
Copy link
Collaborator

@letypequividelespoubelles letypequividelespoubelles commented Oct 9, 2025

Note

Add constraints to flag illegal user transactions using disallowed precompiles and force transaction-end shorthands to binary.

  • Constraints:
    • Forced Transactions: Add hub/osaka/constraints/forced_transactions.lisp with:
      • illegal-precompiles check using PEEK_AT_SCENARIO and scenario/PRC_RIPEMD-160 + scenario/PRC_BLAKE2f.
      • Accumulator PROVER_ILLEGAL_TRANSACTION_DETECTED_ACC (:i16 :fwd) and final flag PROVER_ILLEGAL_TRANSACTION_DETECTED (:binary :bwd) gated by USER and system-txn-numbers---user-txn-end.
    • Txn-End Shorthands: Wrap system-txn-numbers---{sysi,user,sysf}-txn-end and aggregate system-txn-numbers---txn-end with force-bin to ensure binary outputs.

Written by Cursor Bugbot for commit 6cebccf. This will update automatically on new commits. Configure here.

Signed-off-by: F Bojarski <[email protected]>
@letypequividelespoubelles letypequividelespoubelles linked an issue Oct 9, 2025 that may be closed by this pull request
cursor[bot]

This comment was marked as outdated.

Signed-off-by: F Bojarski <[email protected]>
cursor[bot]

This comment was marked as outdated.

Signed-off-by: F Bojarski <[email protected]>
(defcomputedcolumn (PROVER_ILLEGAL_TRANSACTION_DETECTED :binary :bwd)
(if-not-zero (system-txn-numbers---user-txn-end)
;; finalization constraint
(~ PROVER_ILLEGAL_TRANSACTION_DETECTED_ACC)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Binary Column Receives Invalid Negative Values

The PROVER_ILLEGAL_TRANSACTION_DETECTED binary column uses bitwise NOT (~) on the PROVER_ILLEGAL_TRANSACTION_DETECTED_ACC integer accumulator. This produces -1 when the accumulator is zero and negative values when positive, which are invalid for a binary column expecting 0 or 1.

Fix in Cursor Fix in Web

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.

feat: forced transaction

1 participant