Building on Bitcoin: Taproot, Ordinals, Runes, and the Lightning Network
A developer's guide to building on Bitcoin — the scripting language, Taproot, Ordinals and Runes for on-chain assets, and the Lightning Network for payments.
Bitcoin is the oldest and most valuable blockchain, but it's often overlooked by application developers. New protocols built on Bitcoin — Taproot, Ordinals, Runes, and the Lightning Network — have opened significant new development surface area worth understanding.
Bitcoin's Scripting Model
Bitcoin transactions are controlled by Script — a stack-based, intentionally non-Turing-complete language. Each output has a locking script (scriptPubKey) and each input provides an unlocking script (scriptSig). The most common scripts: P2PK (pay-to-public-key), P2PKH (pay-to-public-key-hash — standard addresses), P2SH (pay-to-script-hash — multisig and more complex conditions), and P2WPKH/P2WSH (SegWit versions). Bitcoin Script is limited by design: it has no loops, no persistent storage, and limited opcodes.
Taproot (2021)
Taproot was Bitcoin's most significant upgrade in years. It introduced Schnorr signatures (replacing ECDSA), key aggregation (multiple participants appear as one key — significant for privacy and efficiency), and Tapscript (a new scripting version enabled by Taproot). The key capability: Taproot allows complex spending conditions (multisig, time-locks, hash-locks) to be encoded in a merkle tree, revealing only the executed branch rather than all alternatives.
For developers: Taproot makes HTLC (Hash Time Locked Contract) constructions more efficient, improves Lightning Network channel management, and enables more complex conditional payment logic while looking like standard transactions on-chain.
Ordinals and Inscriptions
The Ordinals protocol (2023) assigns a serial number to each satoshi (the smallest Bitcoin unit) based on mining order. This creates unique, trackable satoshis. Inscriptions embed arbitrary data (images, text, JSON, code) into Bitcoin transactions using the SegWit/Taproot witness space. The result: NFTs and digital artifacts directly on Bitcoin's base layer — no sidechains, no wrapping, no bridges.
Ordinals have been controversial in the Bitcoin community (many consider inscription data spam), but they're an established market. The Ordinals ecosystem has its own marketplaces (Magic Eden on Bitcoin, Gamma), wallets (Xverse, Leather), and tooling (ord client, ord indexer).
Runes
Runes (launched at Bitcoin halving 2024 by the Ordinals creator) is a fungible token protocol for Bitcoin. Unlike BRC-20 (which used inscription text for balance tracking), Runes uses Bitcoin's OP_RETURN outputs for efficient token issuance and transfers. Runes are simpler, more UTXO-compatible, and produce less chain bloat than BRC-20. This is Bitcoin's answer to ERC-20 tokens — native fungible assets without a sidechain.
Lightning Network
Lightning is Bitcoin's payment channel network — a Layer 2 that enables near-instant, near-free Bitcoin payments. Two parties open a channel by locking Bitcoin in a 2-of-2 multisig on-chain. They can then transact unlimited times off-chain by updating the channel state. When they're done, one final settlement transaction closes the channel and distributes funds.
Building on Lightning: BOLT (Basis of Lightning Technology) specs define the protocol. Implementations: LND (Go, by Lightning Labs), CLN (C, by Blockstream), Eclair (Scala, by ACINQ). Developer tooling: LND REST/gRPC API, Polar (local Lightning development network). Common applications: micropayments, streaming payments, consumer payment apps (Strike, Wallet of Satoshi).
Stacks: Smart Contracts on Bitcoin
Stacks is an L2 that brings Turing-complete smart contracts to Bitcoin. Stacks transactions are settled on Bitcoin — the Clarity smart contract language reads Bitcoin state and is anchored to Bitcoin security. Clarity is intentionally not Turing-complete in the same way as Solidity (it's decidable — the execution cost is knowable before running). The Stacks ecosystem has DeFi protocols (ALEX), NFTs, and a growing developer community.
Hiring Bitcoin Developers
Bitcoin developers are rare — the base layer requires C++/Bitcoin Core expertise. Lightning developers need deep networking and cryptography knowledge. Ordinals/Runes developers are often coming from the web3 world with Bitcoin-specific knowledge layered on top. Budget 30–50% higher than equivalent Ethereum developers. The Stacks ecosystem uses Clarity, which is unique — look for developers in the Stacks developer forums.
Frequently Asked Questions
Related Guides
Ready to build your Web3 project?
Tell us about your project and get a precise quote.
Get a Project Quote