Proof · inspect every lock
- PolygonEscrow factory0x4925d712590f6e3d1df35B099610385FE435fa8fExplorer ↗
- PolygonResolver contract0x24E370E00e71004867C57455414E770C532Cb1eeExplorer ↗
- PolygonResolver account0x77ed0fef5e9DFB34e776adb11c29dd19d382745CExplorer ↗
- NEARHTLC contractflexlock-1inch.testnetExplorer ↗
- NEARResolver accounthtlc.testnetExplorer ↗
- NEARTest maker accountgoldrogerswap.testnetExplorer ↗
Hashlock lab
sha256(secret) · the hashlock both HTLCs store
0x
Change one character and the whole hash changes. That is why the escrows can publish the hash openly: nobody can work backwards to the secret, yet anyone can check a revealed secret against it. Computed in your browser with Web Crypto.
▶ Watch the demoStack
- Polygon contracts
- Solidity · Foundry · 1inch cross-chain-swap
- NEAR contracts
- Rust · near-sdk · cargo-near
- Backend
- NestJS · ethers · near-api-js · 1inch cross-chain SDK
- Frontend
- Next.js · wagmi · MetaMask · three.js