https://github.com/zkemail/zkemail.rs
A monorepo of ZkEmail library written in Rust and using different ZkVM solutions
https://github.com/zkemail/zkemail.rs
Last synced: about 1 year ago
JSON representation
A monorepo of ZkEmail library written in Rust and using different ZkVM solutions
- Host: GitHub
- URL: https://github.com/zkemail/zkemail.rs
- Owner: zkemail
- Created: 2024-11-01T04:24:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-14T07:50:23.000Z (about 1 year ago)
- Last Synced: 2025-04-14T18:16:24.697Z (about 1 year ago)
- Language: Rust
- Size: 307 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# ZkEmail.rs
Zero-knowledge proof system for email verification, with support for DKIM signatures and regex pattern matching.
## Installation
```toml
zkemail_core = { git = "https://github.com/zkemail/zkemail.rs" }
zkemail_helpers = { git = "https://github.com/zkemail/zkemail.rs" }
```
### Core (`zkemail_core`)
Low-level library providing:
- Email verification primitives
- DKIM signature validation
- Regex pattern matching
- Core data structures for email proofs
- Circuit implementations
### Helpers (`zkemail_helpers`)
High-level utilities for:
- Email input generation and parsing
- DNS resolution for DKIM keys
- Regex compilation and pattern matching
- Configuration management
## Usage
```rust
use zkemail_core::{verify_email, verify_email_with_regex};
use zkemail_helpers::{generate_email_inputs, generate_email_with_regex_inputs};
// Basic email verification
let email = generate_email_inputs("example.com", "email.txt").await?;
let result = verify_email(&email);
// Email verification with regex matching
let input = generate_email_with_regex_inputs(
"example.com",
"email.txt",
"regex_config.json"
).await?;
let result = verify_email_with_regex(&input);
```