🌉P2P Token Bridge Using Blue Guava Signaling
⚡ Zero-Trust Crosschain Value Transfer Protocol
The piARM P2P Bridge is a non-custodial, trust-minimized protocol for cross-chain value transfer — with no wrapped tokens, no relayers-as-a-service, and no custodial multisigs.
It leverages the Blue Guava coordination engine and distributed piARM Relay Nodes to verify and transmit cryptographic proofs directly between participants. The result is a bridgeless, peer-to-peer swap protocol — optionally privacy-enhanced — with full cold wallet compatibility.
🔁 Core Workflow: Token Swap Across Chains
🧩 Step-by-Step Flow (Alice → Bob)
Session Initiation
Alice and Bob agree to a trade across Chain A and Chain B (e.g., $100 USDC on Base ↔ 500 DAI on Optimism).
A Guava Session ID is generated, either via wallet interface or a CLI command.
Both parties sign an ephemeral key pair used for signaling.
Escrow Lock on Chain A (Alice)
Alice creates an on-chain escrow smart contract lock on Chain A.
Token: USDC
Amount: 100
Conditions: Valid until expiry timestamp or challenge/fallback condition.
A hash commitment is made using Guava’s message format.
Proof of Lock → Guava Signal
Once Alice’s escrow is confirmed on-chain, a Blue Guava Signal is emitted:
Contains Merkle proof of lock
Session ID
Alice’s wallet ID
Timeout fallback
The signal is relayed peer-to-peer or through distributed PiRelays.
Claim on Chain B (Bob)
Bob verifies the signal and mints or transfers DAI to Alice (500 DAI).
This is either:
A pre-funded vault model, or
Bob escrows a matching commitment on Chain B (symmetric settlement).
Once transfer is made, Bob emits a Guava Receipt Signal with proof of action.
Finalization on Chain A
Alice receives the Guava receipt.
The original escrow on Chain A is finalized, either:
Burned (if synthetic/mirror token was used), or
Released back to Alice (if trade was voided), or
Sent to Bob (if confirmed swap occurred).
🔐 Privacy Layer (Future development)
The P2P Bridge supports privacy-preserving features:
Encrypted Session Metadata Ephemeral keys obscure participant addresses, amounts, and timestamps.
Route Obfuscation via piARM relays Signals can be routed through randomized relay nodes to mask origin chains.
Cold-Signed Payloads Sensitive instructions can be signed offline and broadcast via trusted peers.

This allows users to execute fully-private, off-chain coordinated swaps — ideal for OTC, DAO treasuries, or activist funds escaping surveillance-heavy chains.
🛰️ Relay Node Economy
piARM Relays are deterministic message routers — not chain indexers, oracles, or validators. They forward signed Guava Signals and earn micro-fees for:
Verifying messages (escrow → receipt → finalize)
Rebroadcasting orphaned/missed messages
Arbitrating expired or challenged sessions
🛠️ Relay Design:
Stateless and lightweight
Language: Rust or Go
Rewarded in native gas tokens or piARM tokens
Optional integration for privacy and high availability
This enables a modular, distributed relay economy — similar to Helium or Pocket, but purpose-built for peer coordination, not bandwidth or RPC.
🧪 Use Cases
Private OTC Swaps — Direct, trustless settlement across chains
Bridgeless Exits — Escape chains like Base or Optimism into Pulsechain, Fantom, etc.
Multi-hop Routing — Relay through third parties (A → C via B)
Contract Integrations — DApps can settle remote chain logic without liquidity pools
🛠️ Tech Stack
Messaging Engine
Blue Guava (TypeScript)
Smart Contracts
Solidity (escrow locks, hash proofs)
Relay Infrastructure
Rust (PiRelays)
Wallet Support
Cold-signed flows (Vault, Hot, Mobile)
💬 “The bridge isn’t broken — it was just centralised.” 💬 “You don’t need a DEX, a bridge, and a VPN. You need a session and a signature.”
🔒 Security & Trust Design
❌ No Central Server
Signaling is peer-to-peer or via decentralized relays
🔐 No Custody
All tokens locked in on-chain contracts, not in bridges
🧾 Verifiable Proofs
Chain A/B events proven via hash commitment + signature trees
⏱️ Timeouts
Escrow auto-voids after expiry or incomplete confirmation
💥 Dispute Recovery
Fallback logic allows user to reclaim funds with signed receipt
Crosschain OTC: Bob and Alice coordinate a private swap across incompatible chains.
Bridgeless Escapes: Exit Base or Optimism into chains like Fantom or Pulsechain without bridging delays or risks.
Multi-hop Trades: Relay swaps through intermediate chains via multi-party sessions.
DApp Integrations: Protocols can use the bridge to settle transactions across chains without liquidity pools.
🤝 How to Get Involved
We’re actively inviting collaborators, testers, and researchers who share our vision of sovereign, interoperable finance.
Ways to contribute:
Join P2P Bridge testing rounds (real swaps with dummy value)
Run a piARM Relay node (testnet incentives available soon)
Propose new privacy flows or dispute resolution logic
Integrate the bridge into your DApp or protocol
Join our Labs discussions on Telegram, GitHub, or via the contributor portal (coming soon).
💡 Quotes
“The bridge isn’t broken — it was just centralised.” “You don't need a DEX, a bridge, and a VPN. You need a session and a signature.”
Last updated