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

Shift public input by 4 bytes #57

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

StanislavBreadless
Copy link
Collaborator

What ❔

Shift public input by 4 bytes

Why ❔

Needed for correct public input generation here

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.

@@ -62,7 +62,7 @@ uint256 constant COMMIT_TIMESTAMP_APPROXIMATION_DELTA = $$(
);

/// @dev Bit mask to apply for verifier public input before verifying.
uint256 constant INPUT_MASK = $$(~uint256(0) >> 8);
uint256 constant INPUT_MASK = $$(~uint256(0) >> 32);
Copy link
Member

Choose a reason for hiding this comment

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

Why?

Copy link
Member

Choose a reason for hiding this comment

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

That’s how public input is constructed/reconstructed in new Boojum and it’s wrapper

@shamatar
Copy link
Member

shamatar commented Oct 2, 2023

I’ll tentatively approve, let’s wait for proof generation anyway

@StanislavBreadless StanislavBreadless merged commit c1fd4bc into boojum-integration Oct 2, 2023
8 checks passed
@StanislavBreadless StanislavBreadless deleted the sb-fix-shift branch October 2, 2023 14:05
StanislavBreadless added a commit that referenced this pull request Dec 22, 2023
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