🔍 What are Templates?
Templates are pre-configured sets of regex patterns that validate different aspects of an email message:
- Sender validation: Verify the email comes from a trusted domain or specific address
- Recipient validation: Check if the email is sent to authorized recipients
- Subject validation: Match specific subject line patterns
- Body validation: Extract and verify content within the email body
- Date validation: Ensure emails are within a specific time range
Each template combines DKIM signature verification (cryptographic proof of email authenticity) with regex pattern matching to ensure emails meet your specific requirements.
🛡 Immutable Templates
As templates are stored on Walrus, they are immutable and cannot be changed once created.
Hence, attestation for verified emails against specified templates can always be verified for the validation rules.
💡 Use Cases
🎓 Educational Institutions
Verify student emails from .edu domains and ensure they were received within a specific academic year. Perfect for validating student status or academic credentials.
🏢 Corporate Email Verification
Validate emails from specific corporate domains (e.g., @mystenlabs.com) to ensure internal communications are authentic and from authorized senders.
🎉 Event Invitations
Verify party invitations with secret codes. Extract invitation details like party type and unique access codes to grant entry to exclusive events.
🔐 Access Control
Use email verification as a form of access control. Only emails that pass both DKIM verification and regex validation can unlock access to protected resources or secret vaults.
📧 Transaction Receipts
Verify payment receipts by checking sender domains (e.g., @stripe.com), extracting receipt numbers, and validating payment dates for financial record-keeping.
🛡️ Security & Compliance
Ensure emails meet compliance requirements by validating sender identity, content patterns, and timestamps. Critical for audit trails and regulatory compliance.
📚 Sample Templates
Active Student in 2025
Recipient email address ends with .edu, received in 2025
Mysten Labs (Sender)
Sender email address contains @mystenlabs.com
Main Party Invite
Check it is from walrus@aver.email, grab the secret code
After Party Invite
Check it is from walrus@aver.email, grab the secret code
⚙️ How It Works
Upload Email
Upload a .eml email file that you want to verify. The email is encoded and sent to the Nautilus enclave.
DKIM Verification
The enclave verifies DKIM signatures using DNS queries (over HTTPS) to ensure the email is cryptographically authentic and hasn't been tampered with.
Regex Validation
The selected template's regex patterns are applied to validate sender, recipient, subject, body, and date fields. All patterns must match for verification to succeed.
Signed Response
If all validations pass, the enclave returns a cryptographically signed response that proves the email verification was performed in a trusted environment. This signature can be verified independently.
🔒 Security & Trust
Nautilus - trusted execution environment
All email attestation happens inside an AWS Nitro Enclave - a hardware-backed trusted execution environment that ensures your email data is processed securely and cannot be accessed by unauthorized parties.
Cryptographic Attestation
Every attestation result is cryptographically signed, providing proof that the verification was performed in the trusted enclave and attested on-chain on the Sui blockchain. This attestation can be independently verified by anyone.
