
PayMesh
A trust-minimized payment mesh powered by Symbiotic Relay and Hyperlane.
About
**PayMesh** is a decentralized, trust-minimized payment orchestration protocol designed to solve the fragmentation of liquidity in the modular blockchain era. It functions as a specialized **Actively Validated Service (AVS)** that leverages **Symbiotic’s** restaking infrastructure to secure cross-chain asset transfers and payroll operations. ### 🛑 The Problem Organizations, DAOs, and Web3 startups face a massive operational bottleneck: **Liquidity Fragmentation**. To pay contributors or vendors across Ethereum, Optimism, Arbitrum, and Base, treasury managers must manually bridge funds, manage gas on multiple chains, and execute dozens of individual transactions. This process is slow, expensive, and prone to human error. Furthermore, traditional bridging solutions often rely on centralized validators or multisigs, introducing significant counterparty risk. ### ⚡ The Solution PayMesh decouples **Liquidity** from **Execution**. It allows organizations to maintain their treasury on a single "Hub" chain (e.g., Sepolia/Ethereum) while executing payments to any supported "Spoke" chain in a single, batched transaction. The protocol provides **"One-Click" Cross-Chain Payroll**: An admin can deposit USDC on Ethereum and sign a single transaction to pay Alice on Optimism, Bob on Arbitrum, and Charlie on Base simultaneously. ### 🛠 Technical Architecture PayMesh is built on a unique fusion of two cutting-edge technologies: 1. **Symbiotic (Consensus & Security):** Instead of bootstrapping a new validator set from scratch, PayMesh borrows economic security from Ethereum stakers. When an organization requests a payout batch: * A decentralized network of **Symbiotic Operators** verifies the batch off-chain. * Operators sign the batch using **BLS signatures**. * The smart contract on the Source Chain verifies that the signature represents a sufficient quorum of staked collateral (e.g., >66% of restaked ETH). * **Slashing Mechanism:** If operators sign a fraudulent batch, their staked assets are slashed (burned) by the protocol, providing hard economic guarantees. 2. **Hyperlane (Transport & Routing):** Once Symbiotic verifies the security, PayMesh utilizes **Hyperlane Warp Routes** to physically move the tokens across chains. * We utilize **Interchain Accounts (ICA)** for advanced "Programmable Money" features, allowing the protocol to not just transfer tokens, but execute logic on the destination chain (e.g., swapping USDC to ETH before depositing into the recipient's wallet). ### 🛡 Trust-Minimized Verification PayMesh implements a **Destination-Side Verification** model. We do not blindly trust the messaging bridge. The protocol synchronizes the Symbiotic Validator Set keys to destination chains, allowing contracts on Optimism or Arbitrum to cryptographically verify the BLS signatures of the source validators locally before releasing funds. ### 🌟 Key Features * **Hub-and-Spoke Treasury:** Manage all funds on L1; execute anywhere on L2. * **Batch Dispatch:** Send hundreds of payments across multiple chains in 1 transaction. * **Auto-Deploy Vaults:** Organizations get dedicated security vaults automatically deployed upon registration. * **Restaked Security:** Secured by the tens of billions of dollars in existing ETH stake, rather than a small, volatile native token. PayMesh represents the evolution of treasury management—where security is shared, liquidity is unified, and payments are borderless.
How it's made
PayMesh was engineered as a modular protocol using **Solidity **, with a heavy reliance on **Foundry** for fork testing to simulate real-world interaction between chains. The system is architected around a fusion of two critical infrastructure partners: **Symbiotic** for consensus and **Hyperlane** for transport. **Security & Consensus (Symbiotic):** We built a custom middleware contract (`PaymentVotingPowers.sol`) that inherits from Symbiotic’s primitives. Instead of a static security model, we utilized the `IVaultConfigurator` interface to programmatically auto-deploy a fresh, isolated **Symbiotic Vault** for every organization that onboards. This ensures that the economic risk of one client is completely segmented from another. We integrated the `ISettlement` interface to verify aggregated BLS-BN254 signatures from operators, and uniquely assigned our protocol the "Burner" role, allowing it to programmatically capture and redistribute slashed funds to close the crypto-economic loop. **Transport & Interoperability (Hyperlane):** To make the system borderless, we integrated **Hyperlane**. We used **Warp Routes** to handle atomic token bridging (burning on Source, minting on Destination) and **Interchain Accounts (ICA)** to unlock "Programmable Liquidity." This allows the Source Chain contract to remotely dispatch function calls—such as swapping USDC for ETH via a DEX—on the destination chain within the same transaction flow. **The "Hacky" Innovation:** Our most notable engineering feat is the implementation of **Trust-Minimized Remote Verification**. We wanted to solve the "weakest link" problem where destination chains blindly trust bridge validators. We built a custom `SymbioticDestinationVerifier` contract that sits on destination chains like Optimism and Arbitrum. The Source chain pushes the Symbiotic Validator Set keys to this verifier. We then utilized the **Ethereum `ecPairing` precompile (0x08)** to perform a cryptographic check of the Symbiotic BLS signatures *locally* on the destination. This means PayMesh uses Hyperlane purely as a data carrier, while the security is derived mathematically from Symbiotic’s restaked assets, creating a truly sovereignty-preserving cross-chain mesh.