How toorcn/rebind works
Rebind is a dual-mode job escrow product: wallet jobs settle on World Chain, while a separate credit sandbox demonstrates the same two-human rule without transactions. Its secondary revoke desk shows agent-key registration, revocation, and World ID rebind behavior. The README documents these capabilities; sampled source confirms the server, wallet/chain, page, and World ID entry points, but not every route-level call, so uncertain wiring is omitted.
Main entry points: paygate.ts Route controller · chain.ts Chain API · server.ts HTTP server · wallet-browser.js Wallet controls
Components 24
Wallet settlement
- Wallet jobs UI
src/wallet-page.ts - Wallet controls
src/wallet-browser.js - Chain API
src/chain.ts - Chain operations
src/wallet-chain.ts - World ID checks
src/world-oidc.ts - Escrow contracts
contracts/src/erc8183/ACPCore.sol - Human registry
contracts/src/HumanRegistry.sol - Two-human hook
contracts/src/TwoHumansHook.sol
Credit sandbox
- Job routes
src/jobs.ts - Job views
src/job-page.ts - Credit pool
src/pool.ts
Revoke desk
- Agent registry
src/registry.ts - Rebind flow
src/rebind.ts
Product explainers
- Payment explainer
src/spatial-view.ts - Interactive scenes
src/spatial-scene.js - Revoke film
src/film-run.ts - Settlement animation
src/flow-page.ts
Other components
- Buyer and worker
- World Chain
- MetaMask
- World App
- HTTP server
src/server.ts - Route controller
src/paygate.ts - Hosted wallet backend
Connections 24
- Buyer and worker → Wallet jobs UI: use wallet jobs
- Wallet jobs UI → Wallet controls: embeds controls
- Wallet controls → MetaMask: sign transactions
- Wallet controls → Chain API: requests chain data
- Chain API → Chain operations: calls operations
- Chain operations → World Chain: reads and settles
- World Chain → Escrow contracts: executes calls
- Escrow contracts → Two-human hook: checks settlement
- Two-human hook → Human registry: reads subjects
- Chain API → World ID checks: starts and checks proofs
- World App → World ID checks: approves verification
- Buyer and worker → HTTP server: use credit sandbox
- HTTP server → Route controller: creates app
- Route controller → Job routes: mounts routes
- Job routes → Credit pool: manages credit jobs
- Job routes → Job views: renders job views
- Job views → Payment explainer: embeds payment view
- Route controller → Agent registry: handles registry routes
- Route controller → Rebind flow: handles rebind flow
- Buyer and worker → HTTP server: open desk or film
- HTTP server → Revoke film: runs film
- Route controller → Settlement animation: serves flow page
- Payment explainer → Interactive scenes: loads scene
- Chain API → Hosted wallet backend: optional hosted mode