Skip to content

trionlabs/zarf

Repository files navigation

Zarf Protocol

Confidential Token Distributions & Payroll

zarf.to

Showcase Project — This is a demonstration project by Trion Labs showcasing our expertise in Zero-Knowledge systems and protocol design. For production implementations or collaborations, contact us.

Zarf Thumbnail

Overview

Distribute tokens to emails with ZK proofs. No wallet exposure. No identity leaks.

Zarf Protocol is a privacy-first payment and token distribution protocol that enables users to send funds or create vestings to an email address instead of a wallet address. By utilizing zero-knowledge proofs, we decouple identity from on-chain addresses, allowing for secure, anonymous, and programmable payments.

Features

🔒 Privacy Powered with ZK

Distribute tokens without exposing recipient identities on-chain. Zarf uses advanced zero-knowledge circuits (Noir) to verify email ownership without ever revealing the email address or the link to the claiming wallet.

⚡ E-mail First Claiming

No wallet needed to start. Recipients receive funds via an email link and can claim them using a standard Google login. This dramatically lowers the barrier to entry for non-crypto natives.

⏳ On-chain & Programmable

Configure cliff periods, linear release schedules, and complex vesting terms directly in smart contracts. Zarf is not just for one-time payments; it's a robust infrastructure for payroll, grants, and token streaming.

Architecture

  1. Off-chain ZK Proof Generation: Users generate proofs of email ownership locally in the browser or via a secure relayer.
  2. Smart Contracts (EVM):
    • Registry: Manages trusted DKIM keys and verifiers.
    • Escrow: Holds funds securely until a valid proof is submitted.
    • Verifier: On-chain Groth16 verifier (generated via Noir) validates the ZK proof.
  3. Frontend: A seamless Svelte-based interface for sending and claiming.

Tech Stack

  • Zero-Knowledge: Noir (Project Aztec)
  • Contracts: Solidity (EVM)
  • Frontend: Svelte + Vite
  • Interaction: Viem / Wagmi

Development

Prerequisites

  • Noir v1.0.0-beta.17
  • Node.js 18+
  • pnpm

Quick Start

  1. Install Dependencies

    pnpm install
  2. Build Circuits

    cd circuits
    nargo build

    Generates the verifier contract and proving keys.

  3. Run Development Server

    cd web
    pnpm dev

Team

Built by Trion Labs. We are a team of engineers and researchers specialized in Applied Cryptography, Zero-Knowledge Systems, and Protocol Design.

Contact

License

MIT License

About

Confidential token distributions using Noir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors