8000 zk-bits (bit) · GitHub
[go: up one dir, main page]

Skip to content
View zk-bits's full-sized avatar
🔒
Locked In
🔒
Locked In

Block or report zk-bits

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
zk-bits/README.md

bit

bit

Building a Bitcoin-native stablecoin · Ducat Protocol · polymath

TypeScript Rust Go Python Bitcoin Nostr Cashu MetaMask Chainlink Google Cloud

Bitcoin L1 credit, threshold custody, ecash rails and the oracle plumbing that ties them together.

Contributions (1yr): 2,641 Repos (1yr): 27 Stars: 44 Followers: 15

Website App Docs Discord X Nostr

Bitcoin L1 · Stablecoins · MPC & threshold custody · Cashu ecash · Nostr · Oracles · Taproot vaults

Ducat · Building now · Open source · Earlier work · Philosophy · Connect

GitHub stats Languages

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 Protocol

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.

The stack

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 · docs TypeScript · HTML The product surface, the marketing site with its static blog, and the GitBook-synced documentation

🔒 private repo, named but not linked.

Side quests

  • 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.

What I'm building now

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 —

Open source

Upstream contributions

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

Earlier work

  • 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.

Philosophy

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.


Connect

X Nostr GitHub Ducat Discord


Activity

GitHub contribution graph

Last refreshed 2026-09-02 18:13 UTC by scripts/update_profile.py.

Pinned Loading

  1. DUCAT-UNIT/unit-cashu-mint DUCAT-UNIT/unit-cashu-mint Public

    TypeScript 12 1

  2. DUCAT-UNIT/strfry-http DUCAT-UNIT/strfry-http Public

    Forked from hoytech/strfry

    a nostr relay

    C++

  3. DUCAT-UNIT/app DUCAT-UNIT/app Public

    TypeScript 1

  4. DUCAT-UNIT/cre-hmac DUCAT-UNIT/cre-hmac Public

    Go 1

0