This repository contains an SP1 program that verifies DKIM signatures.
Before you begin, ensure you have the following installed:
- Rust Programming Language: Install Rust by following the instructions here.
- SP1: Install SP1 by following the official installation guide.
Clone the repository and navigate into it:
git clone https://github.com/allemanfredi/sp1-dkim.git
cd sp1-dkim
Navigate to the program
directory and build the SP1 proof:
cd program
cargo prove build
Navigate to the script
directory and execute the script:
cd ../script
RUST_LOG=info cargo run --release -- --execute \
<from_domain> \
<email_path> \
If you want to generate the proof, replace execute
with prove
Parameters:
<from_domain>
: The domain where the mail comes from.<email_path>
: The path to the file containing the email.
Here's an example command:
RUST_LOG=info cargo run --release -- --execute \
example.com \
./email.eml
This code is not audited. Use it at your own risk. The repository owners and contributors are not liable for any damages or issues that may arise from using this software.
Contributions are welcome! If you have suggestions or find issues, please open an issue or submit a pull request.
This project is licensed under the MIT License.