Interactive guide to how Privacy on Demand (PoD) works: source chain contracts, relayer services, and COTI MPC execution.
Standalone static site — link from pod-explorer and docs.coti.io.
This site maps to the repos below. They are grouped by role in the cross-chain flow (source chain → relayer → COTI → return).
| Repository | Role |
|---|---|
| coti-contracts | Core COTI garbled-circuit and MPC library, plus PoD dApp contracts under contracts/pod/: MpcAdder, PodLib, MpcCore, pERC20, Privacy Portal, and integration examples. |
| coti-pod-inbox-contracts | Cross-chain Inbox implementation: message routing, miner (batchProcessRequests), fee manager, and MpcAbiCodec. Inbox-facing interfaces are synced into coti-contracts. |
| pod-mpc-lib | Legacy monolith — original combined PoD contracts and Hardhat tooling. Active development is split into coti-pod-inbox-contracts and coti-contracts; use pod-ecosystem-integration for full-stack work. |
When a MessageSent event fires on the source chain, three services carry the request to COTI and back:
| Repository | Abbrev | Role |
|---|---|---|
| bs-nbe | NBE | Monitors BlockScout (or a compatible explorer API) for Inbox transactions on the source network and posts notifications downstream. |
| contract-manager-service | CMS | Contract Manager — receives upstream requests, applies contract-specific module logic, builds unsigned transaction payloads, and forwards them for signing. |
| hot-wallet-v2 | Hot wallet | Signs, broadcasts, and monitors EVM transactions; handles gas slippage, stuck-tx replacement, and status callbacks. |
| Repository | Role |
|---|---|
| pod-architecture (this repo) | Interactive architecture guide with zoomable flow diagrams, journey playback, and fee breakdown. |
| pod-explorer | PoD block explorer for browsing cross-chain requests and contract activity. |
| documentation | GitBook source for docs.coti.io, including the Privacy on Demand guide. |
| Repository | Role |
|---|---|
| coti-sdk-pod | TypeScript SDK (@coti-io/pod-sdk) for PoD dApps: encrypt/decrypt helpers, async Inbox patterns, account onboarding, and contract integration docs. |
| pod-ecosystem-integration | Multi-repo dev workspace, deploy scripts, and E2E/system tests across inbox, dApp contracts, and COTI executor flows. |
Three zoomable blocks:
- Source network (Sepolia example) —
MpcAdder→PodLib64→Inbox→MessageSent - Relayer — NBE → CMS → hot wallet
- COTI network —
batchProcessRequests→MpcExecutor→MpcCore→ return leg
Click a block to focus it. Click a node to see contract details and highlighted call paths. Use Play journey for a step-by-step walkthrough.
npm install
npm run devnpm run build
npm run previewGitHub Actions workflow at .github/workflows/deploy.yml builds and syncs dist/ to S3 (same pattern as pod-explorer).
Secrets:
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEY
Repository variables:
AWS_REGIONS3_BUCKETS3_PREFIX(optional)CLOUDFRONT_DISTRIBUTION_ID(optional)
Add a nav link to the deployed architecture URL, e.g.:
<a href={import.meta.env.VITE_POD_ARCHITECTURE_URL ?? "https://pod.coti.io/how-it-works"}>
How PoD works
</a>Set VITE_POD_ARCHITECTURE_URL in pod-explorer CI/build when the architecture site URL is known.
Add a documentation page that links or embeds the hosted URL (iframe or direct link).
| Step | Zone | Action |
|---|---|---|
| 1–6 | Source | User → MpcAdder → PodLib → Inbox → MessageSent |
| 7–10 | Relayer + COTI entry | NBE → CMS → hot wallet → batchProcessRequests |
| 11–17 | COTI | Execute → MpcExecutor → MpcCore → respond → return request |
| 18–24 | Return | Relayer mines callback → MpcAdder.receiveC → result stored |
Flow data lives in src/data/pod-flow.ts.
MIT