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: Added Core ZkEmail Functionality #1

Merged
merged 26 commits into from
Jan 15, 2025
Merged

Conversation

shreyas-londhe
Copy link
Member

@shreyas-londhe shreyas-londhe commented Nov 6, 2024

Add DKIM Email Verification and Pattern Matching

Implements core functionality for verifying DKIM-signed emails and extracting patterns using zkVM-compatible regex matching.

Features

  • DKIM signature verification using RSA-SHA256
  • Email body hash validation
  • Pattern matching using pre-compiled DFAs for zkVM compatibility
  • Support for searching in both headers and body
  • Optional pattern match revelation

Implementation Details

  • Uses cfdkim for email canonicalization
  • Implements zkVM-friendly pattern matching using regex-automata
  • Supports both forward and reverse DFA matching
  • Handles UTF-8 encoded content

Testing

  • Verifies DKIM signatures on real email samples
  • Tests pattern matching for reset codes and usernames
  • Includes test email fixtures

@shreyas-londhe shreyas-londhe changed the title Feat: Implemented Core ZkEmail Functionality Feat: Added Core ZkEmail Functionality Nov 6, 2024
Cargo.toml Show resolved Hide resolved
README.md Show resolved Hide resolved
core/src/circuits.rs Show resolved Hide resolved
core/src/structs.rs Show resolved Hide resolved
core/src/circuits.rs Show resolved Hide resolved
core/src/utils.rs Outdated Show resolved Hide resolved
core/src/utils.rs Outdated Show resolved Hide resolved
helpers/src/input_generators.rs Outdated Show resolved Hide resolved
helpers/src/input_generators.rs Outdated Show resolved Hide resolved
helpers/src/input_generators.rs Outdated Show resolved Hide resolved
@shreyas-londhe shreyas-londhe merged commit 32cd731 into main Jan 15, 2025
2 checks passed
@shreyas-londhe shreyas-londhe deleted the feat/core-impl branch January 15, 2025 09:00
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.

2 participants