From Bitcoin Cashalyst
Trustless BCH escrow or cross-chain atomic swap using CashScript. No central custodian—contract holds the coins.
CashScript can encode escrow logic: “release to A if they provide proof, else after timeout return to B.” That’s the basis for P2P escrow, atomic swaps (BCH ↔ other UTXO chains), or conditional payments. On BCH this runs as standard Script, so it’s transparent and low-cost.
People want to trade or pay with BCH without trusting a third party. Centralized escrow is a single point of failure. Atomic swaps (e.g. BCH for BTC or another asset) usually require custom tooling and clear contract interfaces. CashScript can express “pay to A if (signature + secret) else after locktime pay to B”—the core of HTLC-style atomic swaps and escrow. The ecosystem needs a reference implementation and a simple UI so power users and integrators can run or compose these flows.
Design and implement a CashScript escrow contract: two parties (or buyer/seller), timeout, and release conditions. Optionally implement a minimal atomic-swap flow (BCH side) with documentation for the other chain’s contract. Provide a small CLI or web UI to deploy, fund, and execute the contract (submit signatures / preimages, claim or refund). Document the contract lifecycle and compare to Solidity escrow/HTLC patterns so Ethereum developers can map concepts. Publish contract source and verification steps.