Drivechain engineering · Consensus audits · Pseudonymous · Crypto-settled

We build the chains
and break them
— to make sure they hold.

The lab behind Skydoge and Bitcoin MOI designs, builds and audits Bitcoin-fork blockchains, BIP300/BIP301 drivechains, blind-merged-mined sidechains and miners. We take a small number of drivechain engineering and consensus-audit engagements for teams building the same.

Shipped
2 mainnet L1s (Skydoge · Bitcoin MOI) · BIP300/301 drivechain live on both · first mainnet sidechain slot: miner-voted withdrawals completed · sidechains (testnet) · miner (release pending) · PPLNS & solo pools · desktop wallets · explorers · snapshot airdrop · 3D chain views
Protocols
BIP300 · BIP301 · PoW SHA-256 · skydogehash (X17-style) · SHAndwich (original PoW) · ASERT · EVM · Stratum · in the lab: Groth16 / BN254 (prototype) · SLH-DSA (design)
Tested
static analysis · multi-model audits · sanitizers (ASan/UBSan) · fuzzing · reorg & crash drills · differential tests · live-chain replay · testnet rehearsals · reproducible builds (Guix / Gitian)
Settled in
BTC · MOI · SKYDOGE

What we do

Drivechain and sidechain development, consensus audits, and the whole stack around them — chain · miner · pool · wallet · explorer. Hands-on work from people who have shipped these systems to a live network — not slide decks.

Audits

Code & consensus audits

Deep review of the consensus, peg and money paths of Bitcoin Core forks, drivechains and sidechains. Multi-model + adversarial verification, sanitizers (ASan/UBSan), fuzzing, reorg/replay and crash drills. We find the bug that loses funds, fix it, and prove the fix with a failing-then-passing test — not a checklist.

Drivechain design & implementation

BIP300 hashrate escrows and BIP301 blind merged mining on a real Bitcoin Core fork: activation, withdrawal bundles, treasury/CTIP, deposits — and the attacks against each. We have also ported a reference drivechain client to C++ and tested it against the original on the same end-to-end suite. What is a drivechain?

Launch a Bitcoin-fork chain or sidechain

A SHA-256 Bitcoin-fork L1, a snapshot airdrop, an EVM sidechain pegged through a drivechain, a prediction-market or compute sidechain. From consensus parameters to genesis to the first blocks.

Mining & pool operations

Stratum pools (ckpool / custom), blind-merged-mining coinbase commitments, rig selection and firmware, hashrate rental strategy, payout plumbing.

Security, self-custody & post-quantum

Cold-signing flows, wallet hardening, and a post-quantum (hash-based SLH-DSA) path planned before it is urgent.

Reproducible builds & verification

Guix/Gitian deterministic builds and release verification, so a build is trustworthy — not just tagged.

AI × Eng

AI-driven audits & agentic review

Multi-model, multi-agent review pipelines that read consensus and money code, surface the fund-loss bug and adversarially verify it — at a scale and from angles one reviewer can't match. We run this on our own chains.

Private LLM deployment & automation

Self-hosted / local models and agentic automation for engineering teams, so your source, keys and data never leave your own infrastructure.

Miner & pool software development

A proof-of-work miner for a new algorithm with CPU, CUDA and OpenCL backends, and stratum pool software with the blind-merged-mining coinbase plumbing. We built our own skydogehash (X17-style) miner (release pending) and run our chains' pools on adapted open-source pool software; the miner still carries SHAndwich, the chain's original proof of work.

Wallets, explorers & integrations

Desktop and mobile wallets for a new chain (Electrum / BlueWallet-based), block explorers, an ElectrumX server, and exchange / RPC integration — the pieces a chain needs to be usable.

Incident response

A live chain that's halted, forked, or losing funds. We diagnose the consensus or peg fault, contain it, and recover — reorg handling, stuck-template fixes, bundle and treasury accounting, under pressure.

Advanced

ZK & advanced cryptography

Zero-knowledge proof systems and on-chain verifiers (Groth16 / BN254, STARK-style), post-quantum signatures, Zcash-based shielded sidechains, and novel peg and commitment schemes. Research-grade — we prototype and prove before we promise.

Node & infrastructure ops

Secure hosting and operation of the servers a chain runs on — full nodes, stratum pools, block explorers, ElectrumX — with hardening, monitoring and failover — plus running the drivechain itself: nodes with the BIP300/301 rules built in, BMM anchoring and withdrawal-bundle voting. We run our own fleet this way.

How we work — pseudonymously

We operate under the Layer Tree Labs name. No real-world identity is exchanged, and none is needed for the work.

  • How it starts. Send the chain, the problem and a rough budget. We answer with a written scope and a fixed price, or an honest "not our area."
  • Written & async. Deliverables are reports, specs, patches, failing-then-passing tests and recorded walkthroughs — reviewable on their own merits.
  • Crypto-settled. Engagements are quoted and paid in BTC, MOI or SKYDOGE. Fixed scope and price up front; milestone payments for larger work.
  • Encrypted contact. Sensitive material over an encrypted channel. We never ask for your identity and don't share ours.
  • Your code stays yours. Pseudonymous NDA on request; we don't publish your work or name you as a client without consent.
  • Portfolio over résumé. Judge us by shipped, public systems below — the only credential that matters here.
  • Every finding verified. Nothing goes into a report on one tool's say-so. Each finding is re-checked against the code by an independent pass and ships with a failing test, the patch, and the same test passing.

Proof of work

Public, running systems we built. This is the portfolio.

Upstream contribution: a merged reorg-handling fix in LayerTwo Labs' zcash sidechain (PR #23) (opens in a new tab) — plus extensive independent testing and auditing of drivechain implementations. Layer Tree Labs is independent and not affiliated with LayerTwo Labs.

+ more sidechains and our test tooling on testnet, among them an AI-compute sidechain on testnet (details at release); an L3 stacked on ECASH, built and tested on an earlier prototype — not public yet.

What is a drivechain?

Two BIPs, one idea: sidechains whose coins are held on the main chain and released only by a slow, public miner vote.

  • BIP300 · hashrate escrow. Coins sent to a sidechain sit in an escrow on the main chain (L1). They leave only through a withdrawal bundle that L1 miners vote on, block by block. As BIP300 (opens in a new tab) is written, a bundle needs 13,150 upvotes before it expires: three months of ten-minute blocks at the very least, so a theft attempt is slow and visible to everyone.
  • BIP301 · blind merged mining. L1 miners commit a sidechain's block inside their own block and are paid for it, without running the sidechain's node. Under BIP301 (opens in a new tab) a sidechain block exists only through that commitment, so it lives and dies with its L1 block.
  • Where it runs. Neither BIP is active on Bitcoin. Both run inside the node on Skydoge and Bitcoin MOI, the two mainnet chains we built. On the Skydoge mainnet the first sidechain slot (Thunder, a drivechain-community design, not our own) was activated by miners in January 2024 and paid back out in August 2026 by two miner-voted BIP300 withdrawals; that chain is not running today. Our own sidechains are on testnet: Ethereum Cash (ECASH, an EVM sidechain of Skydoge) and an AI-compute sidechain on testnet (details at release). The three attacks below are the ones these rules exist to stop.
  • The layers. L1: two proof-of-work mainnets, Skydoge and Bitcoin MOI. L2: drivechain sidechains, on testnet today, plus the mainnet slot history above. L3: a chain stacked on the ECASH sidechain; built and tested on an earlier prototype, being brought to the current testnet.

Try to break it

Three drivechain and proof-of-work attacks we audit against, drawn out and playable. Run a case and the stage plays a fresh losing attempt — a new roll every time — and shows the rule that stops it.

We build the chains and break them — to make sure they hold.

Start a conversation

FIG. 04 — Chain Fight · illustration, not a measurement · the attacker has a minority of the hashrate

Simulation only: no real network involved. Every run is rolled to show how the attack fails, not how often. The attacker here has a minority of the hashrate. On a real chain a minority attacker can still win a short race by luck, which is why payments wait for confirmations, and with a sustained majority (a 51% attack) all three attacks succeed; a forged bundle would need that majority for the whole months-long vote.

Reorg

fork point honest chain · most work to be replaced 2 behind private fork · less work · stale
Illustration · not a measurement

The attempt Mine a fork in private from below the tip, then publish it to replace blocks that were already confirmed.

What stops it Nodes follow the chain with the most accumulated proof-of-work. With a minority of the hashrate the private fork almost always falls behind, and the odds shrink with every extra block it has to replace. A fork with less work is ignored.

Bundle theft

L1 blocks · one vote each forged bundle threshold sidechain score 1 of 6 · falls short escrow upvote downvote abstain
Illustration · not a measurement

The attempt Propose a forged withdrawal bundle on a sidechain that pays the L1 escrow out to the attacker.

What stops it A BIP300 withdrawal pays out only once a long miner vote reaches its threshold. Each L1 block can upvote, downvote or abstain; without most of the hashrate the score never gets there and the bundle fails.

BMM orphan

sidechain L1 commitment competing L1 block goes stale its sidechain block orphaned with it
Illustration · not a measurement

The attempt Get an alternative sidechain block committed in an L1 block that competes with the honest one at the same height.

What stops it A blind-merged-mined block exists only through the commitment in its L1 block (BIP301). When that L1 block loses the race and goes stale, the sidechain block is orphaned with it.

Questions

Short answers about drivechain work, audits, payment and who we are.

  • What is a drivechain? A drivechain is a sidechain design for Bitcoin-style chains, specified in BIP300 (hashrate escrows) and BIP301 (blind merged mining). Coins move from the main chain into an escrow that belongs to a sidechain, and come back only through a withdrawal bundle that main-chain miners vote on for months. Neither BIP is active on Bitcoin itself; both run on our own chains, Skydoge and Bitcoin MOI.
  • What does a drivechain or sidechain audit cover? The consensus, peg and money paths: sidechain activation, deposits, withdrawal bundles and the miner vote, treasury (CTIP) accounting, blind-merged-mining commitments, and behaviour under reorgs and crashes. Each confirmed finding comes with a failing test, the fix, and the same test passing.
  • Do you only work on BIP300/BIP301 chains? No. The same work applies to any Bitcoin Core fork: SHA-256 chains, new proof-of-work algorithms, snapshot airdrops, EVM sidechains, miners, stratum pools, wallets and explorers. The full list is under “What we do”.
  • How can I verify a pseudonymous team? By the work. The chains, pools and explorers under “Proof of work” are public and running; Skydoge’s main chain has been running since December 2022 (first block mined on 10 December 2022, which anyone can check on its explorer); skydoge.net and bitcoin.moi link back to layertreelabs.com; and the reorg fix merged upstream in LayerTwo Labs’ zcash sidechain (PR #23) was submitted from the same GitHub account that hosts the Skydoge source.
  • How are engagements priced and paid? Fixed scope and a fixed price, quoted up front and paid in BTC, MOI or SKYDOGE, with milestone payments for larger work. Tell us the chain, the problem and a rough budget; we reply with a scope and a price, or an honest “not our area”.
  • Is ECASH here the same as Cashu, Fedimint or eCash (XEC)? No. ECASH on this page is Ethereum Cash, our proof-of-work EVM sidechain of Skydoge, currently on testnet (ecash.dog). It is not Chaumian ecash (Cashu, Fedimint), not eCash (XEC), and not the eCash (ECX) fork of Bitcoin.
  • Are you affiliated with LayerTwo Labs? No. Layer Tree Labs is an independent lab. We build on the same BIP300 and BIP301 specifications and have contributed a fix upstream, but the two are separate organisations.

Get in touch

Tell us the chain, the problem, the rough budget.

We reply with a scope and a fixed price, or an honest "not our area."

Telegram: @layertreelabs (opens in a new tab)

Encrypted: PGP & Session — added soon

Scope & disclaimer. Layer Tree Labs provides engineering, audit and technical services only — architecture, implementation, review, security and operations. We do not provide investment, trading, tax or legal advice, do not manage client funds, and nothing here is a solicitation to buy or sell any asset. Clients are responsible for the legal and regulatory status of what they build in their own jurisdiction.