⚡Circuits
Venmo Registration
Main circuit that both on and off rampers use to tie a specific Venmo ID hash to their public address
Verifies the DKIM signature (RSA, SHA256)
Extracts the Venmo ID of the user registering and reveals its hash
Regex Circuit | Description |
---|---|
From Regex | Extracts the sender of the Venmo email (venmo@venmo.com) |
Actor ID Regex | Extracts the Venmo payer ID from the payment sent email. |
Venmo Send
Main circuit that allows the onramper to generate a proof of payment using a Venmo payment sent email. Venmo payment sent emails have a subject of the form "You paid ...". The circuit:
Verifies the DKIM signature (RSA, SHA256)
Extracts payment amount from the subject of the email
Extracts timestamp from the subject of the email
Extracts payer and payee Venmo ID's and reveals their hashes
Generates nullifier to prevent double spending
Accepts the intent hash and ties the proof to that specific order to prevent frontrunning
Regex Circuit | Description |
---|---|
From Regex | Extracts the sender of the Venmo email (venmo@venmo.com) |
Timestamp Regex | Extracts timestamp from the subject of the email |
Amount Regex | Extracts $ amount sent from from venmo payment sent email header |
Payer ID Regex | Extracts the Venmo ID of the user who send the payment |
Payee ID Regex | Extracts the Venmo ID of the user who received the payment |
Client-Side and Server-Side Proving
ZKP2P offers two options for proof generation:
Client-Side Proving: This option is designed for users who prioritize privacy and do not wish to share their emails with a server. It allows users to generate proofs on their own devices, ensuring their information remains confidential. However, this method requires downloading large cryptographic keys and can take approximately 10 minutes to generate proof.
Server-Side Proving: For users valuing speed and convenience, ZKP2P provides a server-side proving service. This hosted solution takes care of proof generation without the user needing to manage large files or endure long wait times. While this method is faster, it does involve sharing email information with the proving server.
Last updated