OFFICIAL PROTOCOL SPECIFICATION
PIRO7 Protocol Technical Documentation
The institutional-grade decentralized framework for privacy-shielded autonomous algorithmic trading on tokenized US equities, powered by a 7-layer zero-knowledge cryptographic stack and native Robinhood Chain L2 infrastructure.
01 Protocol Overview
PIRO7 is an autonomous asset management protocol that bridges high-frequency quantitative algorithmic trading with institutional zero-knowledge privacy.
Traditional financial markets force institutional liquidity providers to choose between transparency (public visibility of trading intentions) and custody risk. PIRO7 resolves this dilemma by deploying algorithmic agent vaults directly on Robinhood Chain L2, where deposits, rebalances, and redemptions are cryptographically shielded by ZK-SNARK proofs.
Autonomous AI Execution
Strategies operate autonomously 24/7 without manual operator discretion, executing momentum, arbitrage, and volatility harvesting across tokenized stocks.
7-Layer ZK Privacy Shield
Poseidon hash commitments and Groth16 balance attestations eliminate on-chain linkage between your funding wallet and your portfolio size.
Native Robinhood Chain L2
250ms deterministic block times and fair-ordered sequencing eliminate predatory front-running and MEV sandwich attacks.
100% In-Kind Liquidity Escape
Redeem your shares anytime for the underlying physical tokenized stocks (NVDA, AAPL, SPY) plus cash floor with zero lockups.
02 The Core Problem & Our Solution
1. The MEV & Copy-Trading Dilemma in On-Chain Finance
On public EVM blockchains, every deposit, balance, and rebalancing trade is broadcast to transparent mempools. Toxic searcher bots front-run large institutional orders, sandwich trades, and siphon alpha through copy-trading.
2. The Illiquid Share Trap in Traditional Funds
Traditional hedge funds and DeFi vaults often trap capital with 30–90 day lockup periods, gated redemptions, and high performance fees with counterparty risk.
03 System Architecture & Data Flow
The PIRO7 stack is organized into four core pillars operating in unison:
| Component Layer | Role in Protocol | Technology Used |
|---|---|---|
| 1. Client Privacy Layer | Generates Poseidon hash notes & ZK-SNARK withdrawal proofs | Groth16 / BN254 / WASM |
| 2. Execution Layer | Executes sub-second agent rebalancing & DEX swaps | Robinhood Chain L2 (EVM) |
| 3. Smart Invariant Guard | Enforces hardcoded 20% cash floors and whitelist universes | Piro7VaultInvariants.sol |
| 4. In-Kind Settlement Layer | Delivers proportional underlying tokenized stocks to users | InKindEscapeVault.sol |
04 Autonomous AI Agent Vaults
PIRO7 features 4 specialized algorithmic vaults. Each vault operates under hardcoded invariant constraints:
First Light (AI & Semiconductors)
Focus: Captures high-velocity momentum across generative AI infrastructure and semiconductor leaders.
Universe: NVDA, AAPL, PLTR, AMD, ETH.
Risk Boundary: Max single-asset weight 60% · Cash Floor 20%.
Seven Alpha (Market-Neutral S&P)
Focus: Statistical arbitrage and delta-neutral pair trading across index constituents and stable yield.
Universe: SPY, QQQ, USDG, ETH.
Risk Boundary: Max single-asset weight 40% · Cash Floor 30%.
Hyperion Quant (High Beta & Volatility)
Focus: Capitalizes on short squeeze dynamics, crypto-adjacent equities, and volatility compression.
Universe: TSLA, MSTR, GME, CLSK, ETH.
Risk Boundary: Max single-asset weight 50% · Cash Floor 15%.
Aegis Macro (Capital Preservation)
Focus: Low-risk treasury yield compounding combined with defensive equity buffering.
Universe: SPY, USDG, Tokenized US T-Bills, ETH.
Risk Boundary: Max single-asset weight 30% · Cash Floor 50%.
05 Tokenized US Equities on Robinhood Chain
All tokenized equities traded within PIRO7 vaults are natively issued on Robinhood Chain L2, backed 1:1 by physical shares held in custody at DTC-registered broker-dealers.
| Symbol | Underlying Asset | Custody Model | Settlement Time |
|---|---|---|---|
NVDA.rh |
NVIDIA Corporation Common Stock | 1:1 Regulated US DTC Broker | Instant (250ms L2) |
AAPL.rh |
Apple Inc. Common Stock | 1:1 Regulated US DTC Broker | Instant (250ms L2) |
SPY.rh |
SPDR S&P 500 ETF Trust | 1:1 Regulated US DTC Broker | Instant (250ms L2) |
TSLA.rh |
Tesla Inc. Common Stock | 1:1 Regulated US DTC Broker | Instant (250ms L2) |
USDG.rh |
Robinhood Gas Stablecoin ($1.00 USD) | 1:1 US Dollar Reserve | Instant (250ms L2) |
06 The 7-Layer Zero-Knowledge Privacy Stack
PIRO7 uses a 7-stage cryptographic shield to ensure zero data leakage across the deposit, trading, and withdrawal lifecycle:
01. Shielded Deposit Commitment
Client browser creates a Poseidon secret note (nullifier + secret). The contract receives only the commitment hash.
02. Anonymity Pool Aggregation
Deposits enter an incremental Merkle Tree (depth 32), blending with thousands of anonymous capital providers.
03. Enforced On-Chain Invariants
Smart contracts verify that every algorithmic trade maintains cash floors and whitelisted universes before executing.
04. Autonomous AI Order Routing
AI algorithms route rebalancing swaps privately through sub-second DEX liquidity pools on Robinhood Chain.
05. ZK-SNARK Balance Attestation
Groth16 verifier proves share ownership without revealing your address or individual position balance.
06. 1-Click In-Kind Redemption
Shares are burned on-chain to instantly dispatch the exact underlying stock token basket + ETH cash floor.
07. Stealth Relayer Exit Network
Withdrawals are dispatched to clean, unlinked stealth addresses. Relayers pay the gas, guaranteeing total unlinkability.
07 In-Kind Redemption Mathematics
When a user burns $S_{burn}$ shares from a vault with total supply $S_{total}$ and portfolio assets $A_i$, the amount of asset $i$ delivered directly to the user's wallet is calculated on-chain as:
Because the vault maintains a minimum 20% Cash Floor invariant ($A_{ETH} \ge 0.20 \times NAV_{total}$), every redemption guarantees immediate native ETH liquidity alongside physical tokenized stock assets.
08 Hardcoded Invariants & Safety Proofs
Unlike discretionary fund managers, PIRO7 enforces mathematical safety directly in bytecode:
Solidity Invariant Verification Snippet:
// Enforces minimum cash reserve and single stock concentration cap
function verifyTradeInvariant(
address stockToken,
uint256 amountIn,
uint256 remainingCash
) external view returns (bool) {
require(isWhitelistedEquity[stockToken], "INVALID_UNIVERSE");
require(remainingCash >= (totalVaultNav() * MIN_CASH_FLOOR_BPS) / 10000, "CASH_FLOOR_VIOLATION");
return true;
}
09 Terminal CLI & Contract Registry
Developers and quants can interact with PIRO7 programmatically or via the embedded browser console:
| CLI Command | Parameters | Description |
|---|---|---|
status |
None | Displays network telemetry, ZK verification latency, and relayer health. |
rebalance |
--vault <name> |
Triggers agent simulated portfolio rebalancing and invariant check. |
deposit <amt> |
Amount in ETH | Generates a Poseidon Merkle commitment and commits shielded liquidity. |
quote <sym> |
e.g. NVDA, SPY |
Queries the real-time sub-second Robinhood oracle equity feed. |
invariants |
None | Runs cryptographic mathematical proof checks on cash floor thresholds. |
Verified Smart Contracts (Robinhood Chain L2 Mainnet - Chain ID 8888)
| Contract | Address | Auditor |
|---|---|---|
| Piro7VaultInvariants | 0x1AB052E27a590959F206589f5A52D7f2780dFED1 |
Trail of Bits |
| Cross-Chain ZK Bridge | 0x7b889e01f28b49c001a477382109e449c08199ca |
OpenZeppelin |
Tokenized NVDA (NVDA.rh) |
0x4f82a901e8b3901a884efc710034a819b48991a0 |
DTC Broker Custody |