Intent
Allow institutions to select public or private execution mode on a per-transaction or per-counterparty basis, optimizing for cost, latency, and confidentiality requirements. This enables hybrid workflows where some legs execute transparently on public infrastructure while others use privacy-preserving mechanisms.Best for: Different legs of a trade have different privacy requirements (e.g., private cash, public asset), or counterparties have heterogeneous compliance regimes requiring flexible disclosure.
Ingredients
Standards
- ERC-7573: Atomic DvP settlement across execution modes
- ERC-3643: Compliant token transfers with transfer rules
- ERC-5564 (optional): Stealth addresses for private mode recipients
Infrastructure
Public Execution
- Ethereum L1 or transparent L2 (Arbitrum, Optimism, Base)
- Standard ERC-20/ERC-3643 token contracts
- Public block explorers and indexing
Private Execution
- Privacy L2 (Aztec, Miden) or shielded pool (Railgun)
- ZK proof generation infrastructure
- Encrypted state management
Mode-Routing Layer
- Smart contract or middleware directing transactions based on policy
- Cross-mode settlement coordinator
Off-chain Components
- Policy engine: Rules defining when to use public vs. private mode per counterparty, asset class, or threshold
- View key infrastructure: For selective disclosure from private legs to auditors
- Coordination service: Manages cross-mode settlement timing
Protocol
Evaluate Mode Per Transaction
When initiating a trade, the policy engine evaluates rules and assigns each leg to public or private execution:
Prepare Assets in Appropriate Environment
Public leg: Assets remain on transparent chainPrivate leg: Assets are shielded
- Deposit to private pool (e.g., Railgun)
- Bridge to privacy L2 (e.g., Aztec)
- Generate ZK proof of deposit
Execute Legs in Parallel or Sequence
Each leg executes in its assigned environment:Public execution:Private execution:
Coordinate Cross-Mode Settlement
ERC-7573 or commit-and-prove mechanism ensures atomicity across modes:Outcome keys or shared commitments link the legs. Both settle or both revert.
Generate Disclosure Artifacts
Private legs produce view keys or ZK attestations for authorized parties:
- Counterparty disclosure: View key for amount verification
- Regulator disclosure: Scoped key for compliance checks
- Auditor disclosure: Attestation of rule compliance without revealing amounts
Guarantees
Mode-Specific Privacy
Mode-Specific Privacy
Public mode:
- Full transparency of amounts, counterparties, timing
- Standard block explorer visibility
- Low cost, high throughput
- Amounts and/or counterparties hidden
- Only commitments and nullifiers visible on-chain
- Disclosed selectively via view keys
Atomic Cross-Mode Settlement
Atomic Cross-Mode Settlement
ERC-7573 outcome keys achieve conditional atomicity:
- Both legs settle or both fail
- No partial settlement possible
- Timeout protection prevents indefinite escrow
Auditability
Auditability
Regulators can verify private legs through selective disclosure:
- View keys decrypt specific transactions
- ZK proofs attest to rule compliance without revealing data
- EAS logs all disclosure events
Compliance Continuity
Compliance Continuity
ERC-3643 transfer rules apply regardless of mode:
- Identity verification checks before public transfers
- Eligibility proofs required for private transfers
- Jurisdictional restrictions enforced in both modes
Trade-offs
Operational Complexity
- Dual infrastructure: Requires expertise in both transparent and privacy systems
- Failure modes multiply: Public leg failure, private leg failure, or coordination failure
- Key management: Different key types for different modes (private keys for public, proving keys for private)
Cost Asymmetry
| Mode | Cost per Transaction | Latency | Privacy Level |
|---|---|---|---|
| Public | ~$0.50 (L2 gas) | Seconds | None |
| Private | ~$5-20 (proof gen + verification) | Minutes | High |
| Hybrid | $5.50-20.50 | Minutes | Mixed |
Hybrid trades pay both public gas costs and private proof generation costs. The additional coordination overhead adds 10-20% to total costs.
Tooling Maturity
- Cross-mode settlement is less battle-tested than single-environment flows
- Limited production deployments exist (mostly PoC stage as of 2026)
- SDK and developer tools are fragmented across privacy vendors
Policy Drift Risk
Mitigation:- Automated policy testing in staging environment
- Dry-run mode evaluation before production execution
- Alerting on mode selection anomalies
- Regular policy audits by compliance team
Example Workflow
Scenario: Private Cash, Public Asset
Trade Setup
Bank A sells tokenized bond (public asset on L1) to Bank B for EURC (private cash on privacy L2).Policy evaluation:
- Bond: Already public asset, no privacy benefit → Public mode
- EURC: Amount confidentiality required → Private mode
Public Leg: Bond Transfer
Bank A locks bond in ERC-7573 contract on L1:Public observers see:
- Bank A address
- Bond token contract
- Amount: 1000 bonds
- Trade ID:
0xabc123...
Private Leg: Cash Payment
Bank B shields EURC on privacy L2 and executes private payment:Public observers see:
- Nullifier:
0x7f3a...(one-time identifier) - Commitment:
0x9c2e...(new note for Bank A) - No amount or recipient visible
Atomic Finalization
L1 DvP contract verifies outcome and releases bond:Bond transfers to Bank B. Public sees bond transfer; private L2 holds encrypted cash payment record.
Implementation Patterns
Pattern 1: Volition Architecture
Use a volition-style L2 with built-in public/private mode selection:Pattern 2: Dual-Chain Bridge
Maintain separate public and private chains with atomic bridge:Pattern 3: Policy-Driven Router
Centralized policy engine routes transactions:See Also
Shielded ERC-20 Transfers
Private mode implementation details
Private L2s
Privacy-focused Layer 2 networks
Atomic DvP via ERC-7573
Cross-mode settlement standard
Commit-and-Prove Fallback
Alternative cross-environment coordination pattern
Regulatory Disclosure Keys
Selective disclosure for private legs
Modular Privacy Stack
Broader architectural framework

