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

feat: nonzero DataHasher #45

Merged
merged 5 commits into from
Nov 14, 2024
Merged

feat: nonzero DataHasher #45

merged 5 commits into from
Nov 14, 2024

Conversation

Autoparallel
Copy link
Contributor

@Autoparallel Autoparallel commented Nov 13, 2024

  • Creates a DataHasher that does not hash a chunk of 16 bytes if they are ALL zero.

Reasoning

We want to be able to just AES encrypt 200 bytes and use the ciphertext from the server if we are going to use the 512b circuits. Without this, we need to AES encrypt 512b so that the use of DataHasher in HttpNIVC would match. Now HttpNIVC ignores 0 padding at the end of bytes and will only hash the relevant plaintext bytes (e.g., in our example: 200b).

@Autoparallel Autoparallel marked this pull request as ready for review November 13, 2024 23:34
@0xJepsen 0xJepsen self-requested a review November 14, 2024 02:56
Copy link
Contributor

@0xJepsen 0xJepsen left a comment

Choose a reason for hiding this comment

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

lg

@lonerapier lonerapier self-requested a review November 14, 2024 04:55
Copy link
Collaborator

@lonerapier lonerapier left a comment

Choose a reason for hiding this comment

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

LFG, thanks for doing this.

package.json Outdated Show resolved Hide resolved
@lonerapier lonerapier force-pushed the feat/nonzero-data-hasher branch from 430aff0 to 2fc4252 Compare November 14, 2024 04:57
@lonerapier
Copy link
Collaborator

rebased it from main, merging it after CI runs green

@Autoparallel Autoparallel merged commit 3fdfd5c into main Nov 14, 2024
3 checks passed
@lonerapier lonerapier deleted the feat/nonzero-data-hasher branch December 12, 2024 04:25
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