Pay, get paid, swap.In CKB
CKBolt connects Bitcoin Lightning to CKB's Fiber Network. Lightning users can pay CKB merchants, and CKB holders can pay Lightning invoices. Each payment completes on both sides, or the payer is refunded.
Lightning and CKB
can't pay each other.
CKBolt is a hub between the two networks. It runs a Lightning node and a Fiber node, prices each route, and locks both sides of a payment to one SHA-256 hash: the payment completes on both networks, or the payer is refunded.
Lightning users can't reach CKB
Lightning has thousands of nodes and many wallets, but no direct way to pay a CKB merchant or buy into a CKB app.
CKB holders can't spend on Lightning
Paying a Lightning invoice or moving into BTC means an exchange, a bridge and several apps.
Merchants carry extra infrastructure
Accepting Lightning without a custodian means running a Lightning node, managing channels and holding BTC.
Liquidity is scattered
Each pair and each network has its own venue, so the best rate is hard to find.
Lightning's users,
paying into CKB.
CKBolt connects CKB's Fiber Network to Bitcoin Lightning, so people can pay, get paid and swap between BTC, CKB and tokens issued on CKB, all on L2. It has three parts: a hub that runs a Lightning node and a Fiber node, a quote engine that prices each route, and an API for wallets, POS terminals and apps. The hub and the quote engine run on testnet; the API is planned for stage 4.
What CKBolt adds
- Fiber's Cross-Chain Hub links Lightning and Fiber for one wrapped-BTC token at a fixed 1:1 rate.
- CKBolt adds a price for each route, so native CKB and stablecoins such as RUSD can use the same hash-lock pattern, in both directions.
- On top come swaps, Get paid for merchants and Pay for CKB holders, all live on testnet. An API for wallets and POS terminals is planned for stage 4.
Why build it on CKB
- Fiber already supports hold invoices, SHA-256 hash locks and token channels: what a hash-locked hub needs.
- Fiber carries tokens as well as CKB, so stablecoins can settle on L2.
What CKB gains
- Lightning users become customers of CKB merchants and apps, without leaving their wallets or holding CKB.
- CKB and CKB stablecoins become settlement assets for real payments.
- Payment volume flows through Fiber channels, giving node operators fees and a reason to add liquidity.
Today, stage 3 of 6
Live testnet demo
- Real swaps with test money
- BTC on Lightning to CKB and RUSD on Fiber, and back
- Pay Lightning and Fiber invoices
- Get paid from Lightning or Fiber
- Fiber node in your browser
- Refund when a payout fails
The market
CKBolt opens to CKB.
Every wallet on this network can already pay a Lightning invoice. With CKBolt, those payments can reach CKB: on testnet today, on mainnet from stage 6.
Three uses.
What makes them work.
Get paid in CKB or stablecoins
A merchant creates a Fiber invoice and the customer pays it from any Lightning wallet (on testnet, one with a channel to the hub). The merchant settles in CKB or a stablecoin such as RUSD, with no Lightning node and no BTC. Live on testnet as Get paid.
Pay Lightning from CKB
A CKB holder scans a Lightning invoice and pays it with CKB or a CKB token from a Fiber node. The recipient gets BTC on Lightning. Live on testnet as Pay.
Swap both ways
BTC on Lightning to CKB tokens and back, without an exchange. Live on testnet for CKB and RUSD. ETH joins through Perun in stage 5.
Hash-locked by design
Both legs of every payment are locked to one SHA-256 hash. Either the recipient is paid and the hub settles, or the payer is refunded. The hub carries the timing and price risk and prices it into its spread.
Best-route liquidity
Planned for stage 6: each quote compares CKBolt hubs, Cross-Chain Hub operators and independent liquidity providers, who earn fees on the routes they serve. Today one CKBolt hub quotes from its own liquidity, on testnet.
One API for wallets, POS and apps
Planned for stage 4: wallets, POS terminals and apps add Lightning payments and swaps with one API, without running new infrastructure. An SDK follows in stage 6.
Four steps.
Both directions.
// What goes in -> what comes outBTC on Lightning -> CKB, RUSD get paid, buyCKB, RUSD -> BTC on Lightning pay, sellCKB -> ETH via Perun stage 5// Example used below: a $5 sale// customer pays in BTC, merchant gets CKB
One quote.
Both networks.
CKBolt sits between Lightning and Fiber, with Ethereum in stage 5. A quote engine prices each route; picking the cheapest of several liquidity sources is planned for stage 6. Hubs running a Lightning node and a Fiber node link both legs of a payment through one SHA-256 hash, in either direction. The Ethereum route uses a Perun multi-ledger channel instead, where both assets sit in one jointly signed channel.
From prototype
to payment network
Six stages, each with a concrete result. Stage 3 is where the project is today: a live testnet demo, open to testers. Early versions of stage 4's Get paid and Pay run there too.
Research and design
The design, and every part that can be checked without a hub.
- Research on Fiber, its Cross-Chain Hub, hold invoices and Perun
- Shared-hash design: both legs of a payment locked to one SHA-256 hash
- Lightning invoice (BOLT11) codec, checked against the spec's test vectors
- Quote maths, product concept and this site
OutcomeA design the next stages build on.
Simulated prototype
A simulation of the product: the interface for every flow is built, and most functions are demos.
- Interface for the three flows: get paid, pay and swap
- Demo merchant checkout with a QR code, and demo scan to pay
- Demo swap quotes both ways for CKB, RUSD and ccBTC, from reference prices
- Simulated settlement: each step of a hash-locked payment is shown, no funds move
- Testnet wallets connect through CCC, including JoyID, to sign quotes
OutcomeEvery user step can be tried as a simulation; no payment is executed.
Live testnet swaps
Real swaps on testnet between BTC on Lightning and CKB tokens on Fiber, in both directions.
- CKBolt hub running a Lightning node (LND) and a Fiber node, with channels on both networks
- Swap CKB and RUSD to BTC on Lightning, and BTC back to CKB tokens
- Both legs held on one SHA-256 hash with hold invoices, refunded if the payout fails
- Firm quotes signed by the hub, from a median of exchange prices plus its spread, paid from its own liquidity
- Public live demo on testnet
OutcomeAnyone can swap test tokens both ways on the live demo, and a failed payout is refunded.
Invoices and merchant payments
CKBolt creates and pays invoices: merchants get paid, and CKB holders pay Lightning.
- Merchant checkout: CKBolt issues a Lightning invoice for the merchant's Fiber invoice; the merchant settles in CKB or a stablecoinLive on testnet, early version: Get paid
- The reverse: a CKB holder scans a Lightning invoice and pays it with CKB tokensLive on testnet, early version: Pay
- Checkout and payment API with webhooks for wallets and POS terminals
- Hosted Fiber node option for merchants who do not run one
- On-chain BTC into Lightning through submarine swaps
- Pilots with merchants, POS providers and wallets
OutcomeA merchant takes a Lightning payment on testnet and receives CKB; a CKB holder pays a Lightning invoice.
Ethereum via Perun
ETH as a third network, through Perun state channels.
- CKB to ETH swaps in a Perun multi-ledger channel, all or nothing for both sides
- Builds on Perun's CKB cross-chain support, in development upstream
- ETH in the same quote engine, API and app
OutcomeA CKB to ETH swap works on testnet through a Perun channel.
Mainnet
Real value, with an audit, limits and monitoring.
- Independent security audit
- Liquidity partners and Cross-Chain Hub operators as sources
- Payment limits, monitoring and rebalancing
- Multi-hub routing and best-quote selection
- SDK for wallets, POS terminals and dApps
OutcomeAudit findings fixed; capped mainnet payments running with monitoring.
Answered as far as we can.
Where something is still undecided, the answer says so.
Move value into,
out of and across CKB.
We are building the link between Bitcoin Lightning and CKB's Fiber Network. Built by TEX Labs; we are looking for merchants, wallets and liquidity providers to pilot with.
Testnet demo. Only test money moves on this site.