← Back to home

OathLock

Escrow contract for payment of eCommerce with real shipment result onchain (EAS).

Problem Statement

OathLock reveals onchain reputation of past eCommerce transaction as past payment with dispute, that were going through this excrow contract, were stored into EAS: Ethereum Attestation Service.OathLock also has builtin seller aligned incentive design for dispute resolving, which results in good person takes good financial benefit in long term.What it solves Global e-commerce is ~$5T in 2025 (≈+12% YoY) and projected to surpass $7T by 2030, yet ~$500B is lost annually to counterfeit and fraud—especially in fashion, cosmetics, and electronics. OathLock reduces these losses by making reputation an enforceable, portable primitive: sellers and buyers accumulate negative-only attestations that cannot be gamed with fake positives.How it works at a glance.Buyer opens an Oath (seller, expiry) and deposits USDC. Past attestations are visible before committing.Seller verifies the Oath and buyer's past attestations also, ships, and commits a tracking hash (deadline-gated).Buyer inspects on arrival: Approve -> immediate release to seller (even before expiry) Dispute (non-delivery/counterfeit with evidence URL) -> no refund, but a negative attestation is recordedX) At expiry: Anyone can call settle(id) to guarantee liveness. not shipped -> refund to buyer; shipped -> full payment to seller.This design removes the free-riding incentive for malicious buyers while crowd-sourcing high-signal evidence against bad sellers. When a seller’s fraud is confirmed by accumulated attestations, harmed buyers receive an information-provider reward—prioritizing prevention of future damage while keeping settlement rules simple and predictable.

Solution

Contracts & TokensOathLockEAS.sol (EVM) — escrow state machine: createOath(), sellerShip(), buyerApprove(), buyerDispute(), settle().USDC (ERC-20) as the settlement asset; amounts locked/released by contract rules.Attestations & ReputationIntegrates EAS (Ethereum Attestation Service) for immutable negative-only reviews and dispute tags (e.g., NON_DELIVERY, COUNTERFEIT, ABUSE).Both sides accrue histories (buyers’ dispute habits are also visible), enabling markets to price trust over time.Emits a full audit trail: OathCreated, SellerShipped, BuyerApproved, BuyerDisputed, SettledToSeller, RefundedToBuyer, Expired.Chains and limitationsFlow EVM (mainnet/testnet) with EAS integrationsZircuit mainnet with no EAS integration, but expecting their scam transaction takedowm feature.Extensiblility Rolling reserves, AI risk scoring, community arbitration (ERC-792/Kleros), automation for time-based settlement, cross-chain flows, and AVS-style watchers slot in without changing the MVP’s core.Notable hacks / choicesOne-shot dispute before deadline to prevent spam and last-minute griefing.Negative-only scoring to avoid review-gaming; quantity + tags > easily faked positives.

Hackathon

ETHGlobal New York 2025

2025

Prizes

  • 🏆

    Best App Idea1st place

    Zircuit

  • 🏆

    Flow Builder Pool Prize

    Flow

  • 🏆

    Best Use of Nora for AI Coding

    Nora

Contributors