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

Add partial_sha256 API #15

Open
jp4g opened this issue Feb 18, 2025 · 0 comments
Open

Add partial_sha256 API #15

jp4g opened this issue Feb 18, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jp4g
Copy link

jp4g commented Feb 18, 2025

Problem

DKIM and JWT signatures (for example) often use signatures over SHA256 hashes to validate payload authenticity. A common pattern to save proving resources is to natively partially compute the hash state up to the point a circuit needs to access the preimage. The circuit would start from this state and complete the hash with the remaining blocks given to it. This is essentially free efficiency for circuit developers and is possible with the sha256_compression opcode.

Happy Case

ZKEmail.nr has partial hashing already integrated. We can simply move this API into the official noir-lang/sha256 package

Workaround

None

Workaround Description

No response

Additional Context

No response

Project Impact

None

Blocker Context

No response

Would you like to submit a PR for this Issue?

Yes

Support Needs

I can PR this if maintainers want to add this functionality - just confirm or deny

@jp4g jp4g added the enhancement New feature or request label Feb 18, 2025
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Libraries Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 👀 To Triage
Development

No branches or pull requests

2 participants