Skip to content
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

Update global constraint directly #77

Merged
merged 3 commits into from
Oct 22, 2024
Merged

Update global constraint directly #77

merged 3 commits into from
Oct 22, 2024

Conversation

hecmas
Copy link
Contributor

@hecmas hecmas commented Oct 15, 2024

The bus-related global constraint can now be updated using the following function:

function direct_update(const int opid, const expr cols[], const expr sel = 1, const int proves = 1, int bus_type = PIOP_BUS_DEFAULT, int name = PIOP_NAME_DEFAULT)

This function is crucial in preventing malicious provers from exploiting re-execution attacks. For example, without proper control mechanisms, continuations could be vulnerable, allowing provers to execute the same cycle multiple times. By enforcing constraints, we ensure that each cycle is executed only once, enhancing the security of the protocol.

@hecmas hecmas requested a review from zkronos73 October 15, 2024 14:50
@cla-bot cla-bot bot added the cla-signed label Oct 15, 2024
@hecmas hecmas marked this pull request as ready for review October 16, 2024 14:59
Copy link
Contributor

@zkronos73 zkronos73 left a comment

Choose a reason for hiding this comment

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

😄

@hecmas hecmas merged commit 16bcd55 into develop Oct 22, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants