Cross-chain HTLC with Arbitrator, on Aptos & Solidity. Accelerate the happy-path, less griefing
A trustless cross-chain atomic swap protocol enabling seamless asset transfers between Ethereum-compatible chains and Aptos. Our system uses Hash Time Lock Contracts (HTLCs) with a resolver-based architecture, where market makers provide liquidity and collateral to facilitate swaps. The protocol features gasless claiming for users, economic security through resolver penalties, and dispute resolution via neutral arbitrators. Key innovations include dual-contract architecture optimized for each chain's capabilities, TEE-secured daemon infrastructure with segregated key management, and universal arbitration proofs that work across both Solidity and Move-based chains. Users simply request quotes, deposit funds, and claim on destination chains while resolvers handle the technical complexity.
Built with Solidity smart contracts on EVM chains and Move contracts on Aptos, featuring a sophisticated daemon architecture running in Trusted Execution Environments (TEEs) for enhanced security. The system consists of SourceHTLC contracts managing complex escrows with EIP-712 signed orders, and simpler DestinationHTLC contracts enabling gasless claims. Four specialized daemons handle operations: Fill Daemon (creates HTLCs), Helper Daemon (reveals secrets/claims refunds), Quote Daemon (provides signed quotes), and Arbitrator Daemon (cross-chain dispute resolution). The arbitrator daemon generates universal EIP-712/BCS-compatible signatures that prove deposits across both Solidity and Move ecosystems, enabling true cross-chain arbitration. All daemons run in TEEs with hardware-enforced key segregation - each daemon maintains isolated private keys that cannot be accessed by other components, ensuring maximum security. The protocol leverages economic incentives through resolver collateral, venue fees, and arbitrator rewards to maintain trustless operation without requiring trusted intermediaries.