Building a Bitcoin-native stablecoin · Ducat Protocol · polymath
Bitcoin L1 credit, threshold custody, ecash rails and the oracle plumbing that ties them together.
Bitcoin L1 · Stablecoins · MPC & threshold custody · Cashu ecash · Nostr · Oracles · Taproot vaults
Ducat · Building now · Open source · Earlier work · Philosophy · Connect
Note
Most of my commits land in private repos under DUCAT-UNIT. The components are named below; the public ones are linked. The stats cards and the building now table refresh daily from the GitHub API.
DUCAT is a credit protocol built directly on Bitcoin Layer 1. You deposit BTC into a non-custodial 2-of-2 Taproot vault, borrow UNIT (a USD-pegged stablecoin issued on Bitcoin L1) or USDC at 0% interest, repay whenever you like, and redeem your BTC in a single block. No bridges, no wrapped tokens, no custodians. Every vault, loan and liquidation is a Bitcoin transaction enforced by Bitcoin Script.
Mainnet is in closed alpha. On testnet the protocol has processed 4M+ transactions, $700M+ of BTC vaulted, $300M+ UNIT minted and 90K+ vaults created.
| Component | Lang | What it does |
|---|---|---|
| Wallet | TypeScript | Non-custodial Expo/React Native wallet: BTC, UNIT Runes, Cashu ecash ("Turbo" BTC and UNIT), vault open/borrow/repay flows, passkey-encrypted seed backup |
| Ducat Snap | TypeScript | MetaMask Snap that derives Bitcoin accounts from the MetaMask seed and signs messages and PSBTs for the web app |
| Mint | TypeScript | Cashu ecash mint for BTC and UNIT Runes, running in GCP Confidential Space; every deploy is attested and signed, and mint secrets only unseal for the pinned image |
| Oracle | Go | Privacy-preserving BTC/USD price-threshold commitments published to Nostr every minute from Chainlink CRE workflows running as WASM |
| Regulator | Go | Gateway between clients and CRE for threshold price quotes; runs the cron jobs that watch at-risk vaults and trigger liquidation checks |
| Relay | C++ | strfry fork with an HTTP API, because CRE cannot speak WebSocket to a Nostr relay |
| Validator 🔒 | Rust · TypeScript | The protocol validation layer, implemented twice so the two can be checked against each other |
| Guardian 🔒 | Rust | The MPC co-signer network behind every 2-of-2 vault, now on its third implementation |
| Protocol SDK 🔒 | Rust | Types, encoders and decoders, and validation for anyone implementing the protocol |
| Core 🔒 | TypeScript | Shared schema, interfaces and libraries used across the services |
| Indexer 🔒 | Rust | Streamlined on-chain Runes indexer feeding the validation layer |
| Price oracle & price server 🔒 | TypeScript | BTC-USD time series and the oracle service that consume it |
| DKG tooling 🔒 | Python | Distributed key generation ceremony coordinator, guardian console and attestation tooling |
| Faucet, notifications, points, admin 🔒 | JS · TypeScript | Testnet faucet for UNIT and BTC, Telegram notifications, the points backend and its admin panel |
| Web app · site & blog 8000 strong> · docs | TypeScript · HTML | The product surface, the marketing site with its static blog, and the GitBook-synced documentation |
🔒 private repo, named but not linked.
- Tron swap demo: UNIT wrapped as a TRC-20 (wUNIT) on Tron and swapped to USDT through a Curve-style StableSwap pool. Nile testnet proof of concept, not production code.
Repos I pushed commits to in the trailing 14 days, ranked by commit count. Private repos are named but not linked.
| Project | Lang | Commits | Last push | What it is |
|---|---|---|---|---|
| guardian-rs 🔒 DUCAT-UNIT |
Rust | 9 | 2026-09-02 | V3 implementation of MPC network for Ducat protocol |
| validator-rs 🔒 DUCAT-UNIT |
Rust | 5 | 2026-09-02 | DUCAT validation layer implemented in Rust |
| points_be 🔒 DUCAT-UNIT |
JavaScript | 4 | 2026-08-24 | — |
| ducat-snap DUCAT-UNIT |
TypeScript | 3 | 2026-09-01 | Ducat Bitcoin account and signing Snap for MetaMask. |
| ducat-landing-page 🔒 DUCAT-UNIT |
HTML | 2 | 2026-09-02 | Ducat Protocol landing page and blog |
| frontend 🔒 DUCAT-UNIT |
TypeScript | 2 | 2026-09-02 | — |
Upstream contributions
- cashubtc/cashu-ts: the TypeScript library for building Cashu wallets
- cashubtc/nutshell: the Chaumian ecash wallet and mint for Bitcoin
- hoytech/strfry: the Nostr relay
Personal
| Project | Lang | Description |
|---|---|---|
| mpc_sss | Go | Multi-party computation over Shamir's Secret Sharing, with gRPC between the nodes and the MPC server |
| zeroid | — | A privacy protocol to create, distribute and verify zero-knowledge, decentralised, sovereign identities, aligned with the W3C DID model |
| keyStoreGenerator | JavaScript | Generate any number of keystores from the same mnemonic |
- GoatFish (2019–2023): a Bitcoin leverage trading and backtesting platform on Node.js that connects to the major exchanges. GoatFish-Core plus the exchange engine, strategy baseline, bot manager and utils, with docs.
- Titan (2019–2023, private): a trading bot platform to deploy and manage different trading algorithms.
- Permutatio (2018, private): one-click switching of ERC20 tokens from Ethereum to GoChain.
Important
Bitcoin holders have been offered an impossible choice: plug into the financial system, or keep sovereign custody. I do not accept that trade. Money that cannot be frozen, collateral that cannot be seized, and a protocol that runs on Bitcoin itself. Self-custody isn't a feature; it's the entire point.
Last refreshed 2026-09-02 18:13 UTC by scripts/update_profile.py.