Skip to content
Zcash Shielded Philanthropy Agent (ZSPA)

Zcash Shielded Philanthropy Agent (ZSPA)

The AI agent that helps you spend your ZEC wisely

Created on 4th December 2025

•

Zcash Shielded Philanthropy Agent (ZSPA)

Zcash Shielded Philanthropy Agent (ZSPA)

The AI agent that helps you spend your ZEC wisely

The problem Zcash Shielded Philanthropy Agent (ZSPA) solves

The Problem Zcash Shielded Philanthropy Agent Solves

Despite Zcash’s strong privacy guarantees, donors and users face several key challenges:

  1. Spending ZEC Wisely

    • Donors often struggle to identify trustworthy causes or verify whether projects will use funds effectively.
    • Manual research is time-consuming and error-prone, and there’s no existing system that evaluates projects automatically and objectively.
  2. Maintaining Privacy While Donating or Transacting

    • Most donation platforms and payment solutions expose donor identity, amounts, or patterns, compromising privacy.
    • Even cross-chain transfers often leak metadata through bridges, addresses, or intermediate steps.
  3. Complexity of Cross-Chain Usage

    • Moving ZEC to other chains or converting to a preferred token is technically challenging and risky.
    • Users need atomic, secure, and privacy-preserving routing to ensure their intent is executed exactly as desired.

The agent addresses these problems by building a TEE-powered, agentic AI agent that evaluates, prioritizes, and executes ZEC transactions safely, privately, and intelligently.


What People Can Use The Agent For

The Agent makes existing tasks easier, safer, and more private by combining AI intelligence, cryptography, and cross-chain capabilities. Use cases include:

  • Private, Trustworthy Donations

    • Users express intent in natural language (e.g., “Donate 5 ZEC to privacy-focused NGOs in Africa”).
    • The Agent autonomously evaluates fundraisers using 15+ trust signals and executes the donation without exposing the donor or the project.
  • Intelligent Allocation of ZEC

    • AI ranks causes by reliability, impact, and risk, helping donors maximize the effect of their ZEC while remaining anonymous.
  • Cross-Chain Philanthropy & Payments

    • Donors can send ZEC to recipients on NEAR, Arbitrum, Ethereum, or in stablecoins without exposing addresses, balances, or patterns.
    • Ensures atomic, privacy-preserving transfers, simplifying complex workflows.
  • Private Portfolio & Treasury Management for NGOs

    • Organizations can receive exactly what they need, in their preferred token, while maintaining privacy and auditability.

In short, The Agent automates and secures private giving, making ZEC usable across chains while protecting both donor intent and identity.

Challenges I ran into

Challenges I Ran Into

Building the agent presented several technical and architectural challenges, primarily around designing a fully agentic AI that could safely handle private ZEC transactions. The core hurdles included:

  1. Orchestrating LangGraph with NEAR AI

    • Problem: NEAR AI provides a powerful inference backend, but it doesn’t natively handle complex, multi-step decision flows. I needed the AI to not just respond to prompts but to autonomously execute multi-stage actions—evaluating fundraisers, computing trust scores, and preparing cross-chain transactions.
    • Solution: I wrapped the NEAR AI model inside a LangGraph agent, which allowed me to define stateful, conditional execution paths. Each node in the graph represented a sub-task—like "fetch fundraiser metadata," "compute risk score," or "prepare TEE transaction payload." LangGraph handled the orchestration, ensuring outputs from one step fed correctly into the next, while also allowing asynchronous and parallel execution for efficiency.
  2. Building the Trust Score Engine

    • Problem: Evaluating causes required combining on-chain data, off-chain metadata, and social trust signals, all while keeping the donor’s intentions private. There was a risk of leaking sensitive information if the AI queried external APIs carelessly.
    • Solution: I developed a 15-signal Trust Score Engine running inside TEE enclaves. Signals included project history, verification status, social proof, and historical donation patterns. The engine aggregates these into a single score, which the agent then uses to prioritize fundraisers. By keeping all computations inside the TEE, no user or transaction data ever leaves the shielded environment, solving both privacy and reliability concerns.
  3. Complex Orchestration Flow

    • Problem: Coordinating the entire pipeline—from user intent → LangGraph agent → Trust Score evaluation → TEE execution → cross-chain settlement—was challenging due to dependencies between asynchronous steps.
    • Solution: I implemented a modular orchestration design within LangGraph, where each step’s inputs and outputs are explicitly defined, allowing easy debugging and monitoring. This modularity also enabled testing individual components in isolation before connecting the full flow, which reduced bugs significantly.
  4. Testing and Debugging in a Privacy-First, Fund-Sensitive Environment

    • Problem: Verifying the full transaction flows required running real cross-chain ZEC transactions, which was costly and risked wasting funds during iterative testing. Standard debugging inside TEEs was limited, making it hard to ensure correctness without actually moving value on-chain.
    • Solution: I developed a safe simulation layer and cryptographically verifiable audit framework. This allowed me to replay full transaction flows and validate logic using minimal test funds, while producing anonymized, provable traces of every step. As a result, I could rigorously test and debug the system without exposing sensitive data or unnecessarily spending real ZEC.

Outcome: By combining LangGraph for orchestration, NEAR AI for agentic intelligence, and TEE-based execution for privacy, I successfully built a pipeline where donors can simply say:

"Donate 5 ZEC to high-trust privacy NGOs in Africa,"
and the agent autonomously evaluates options, computes trust, and executes a private, cross-chain transaction, all verifiable and secure.

This approach addressed both complex agent orchestration and privacy-preserving AI decision-making, demonstrating a first-of-its-kind TEE-powered agent for ZEC philanthropy.

Tracks Applied (8)

Cross-Chain Privacy Solutions

"Secure cross-chain communication requires secure intelligence." Zcash Shielded Philanthropy Agent is a Dual-TEE AI Age...Read More
Axelar Network

Axelar Network

Privacy-Preserving AI & Computation

"An AI Agent that runs inside hardware enclaves for real-world financial decisions with cryptographic proof." Zcash Sh...Read More
Axelar Network

Axelar Network

Cross-Chain Privacy Solutions

"AI-powered cross-chain privacy that brings intelligent ZEC spending to multiple blockchain ecosystems" We built a dual...Read More
Osmosis

Osmosis

Cross-Chain Privacy Solutions

"We turned ZEC into a cross-chain native asset with AI routing and hardware-sealed privacy." The agent transforms ZEC f...Read More
NEAR Protocol

NEAR Protocol

Privacy-Preserving AI & Computation

"An AI agent that thinks, audits, and executes, entirely inside hardware enclaves with cryptographic proof." When you s...Read More
NEAR Protocol

NEAR Protocol

Private Payments & Transactions

"We turned ZEC into programmable money for real-world impact, with AI-guided trust and hardware-sealed privacy." Donor...Read More
NEAR Protocol

NEAR Protocol

General Bounty

"From passive wallets to Intelligent Agents, the next evolution of Zcash innovation." The biggest barrier to ZEC adopti...Read More

Project Tachyon

Private Payments & Transactions

"🔥 SHARK TANK PITCH: Zcash is the best money for privacy, but the worst for making wise decisions." The Problem: Donor...Read More

Star Fun

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio