BTC-Subnet-Core / subnet-core
Publicsubnet-core – Minimal TypeScript educational node modeling Bitcoin‑IPC: Proof‑of‑Stake subnets with BTC‑denominated stake, CometBFT‑style weighted quorum gates, cross‑subnet envelopes (SegWit / OP_RETURN batching), and a local two‑subnet harness with optional Bitcoin Core regtest integration. A living reference for researchers
This is an educational TypeScript project that demonstrates how the Bitcoin-IPC architecture works — a system for scaling Bitcoin using proof-of-stake subnets anchored to Bitcoin's blockchain. It shows how validators can lock Bitcoin as collateral, reach consensus through weighted voting, and send cross-subnet transfers that get recorded on Bitcoin. The project includes a local testing harness with two simulated subnets, optional connection to a live Bitcoin node for real anchoring, and clear implementations of stake management, consensus rules, and envelope packaging.
How It Works
You hear about a research paper that proposes anchoring proof-of-stake networks directly to Bitcoin for massive scaling.
You download a small TypeScript project that shows exactly how this architecture works with clear, readable code.
Validators lock their Bitcoin as collateral, which becomes their voting power in the network.
The system spins up two separate networks that can talk to each other through Bitcoin.
More than two-thirds of validators vote for the same transaction, and it commits.
Not enough validators agree, so the burned coins are returned safely to the sender.
A tiny note is embedded in a Bitcoin transaction, proving the cross-subnet transfer happened.
The recipient receives the Bitcoin on the destination subnet, secured by Bitcoin's blockchain.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.