banner
CKB 中文

CKB 中文

CKB 是理想的比特币 Layer 2

CKB Version "Lightning Network" Fiber Network: The Third Path of Bitcoin's Programmable Scalability

This article is reproduced from NingNing's X tweet, original link: https://x.com/0xNing0x/status/1829130109842043383

The industry cycle resonates with the macro financial cycle, and the encryption industry is currently in a state of overall confusion similar to 2019. At this stage, not only is there a lack of liquidity, but the narrative also seems to be drying up. The market is not only uninterested in VC narratives, but also tired of anti-VC meme narratives.

Just like every philosophical crisis, people will return to Plato to find a way out. When the encryption industry is in crisis, we also need to return to Bitcoin, return to Satoshi Nakamoto.

As Cipher, the founder of the CKB ecosystem RGB++ protocol, elaborated in the latest Blog, the encryption industry needs to reflect on the path dependence of "on-chain computation" of Ethereum, return to P2P economics, let computation be off-chain, and let verification be on-chain.

Therefore, in the selection of Bitcoin's programmability extension solutions, CKB respects the consensus of the Bitcoin community that "verification is greater than computation" and does not replicate Ethereum's Rollup solution and Restaking+AVS solution. Instead, it pays tribute to the Bitcoin Lightning Network and launches the CKB version of the Lightning Network Fiber Network (referred to as CFN).

CFN's official description is the next-generation public lightning network based on CKB and off-chain channels. The main technologies used include: CKB's Cell (a Turing complete UTXO), RGB++'s isomorphic binding and Leap cross-chain without bridges, Bitcoin script's HTLC (Hash Time Lock Contract), and the Lightning Network's state channels.

A standard CFN payment channel lifecycle is as follows:

Open channel - Lock assets - Create HTLC - Update state - Verify transaction - Complete transaction - Close channel - Submit final state

1

(CFN payment channel lifecycle)

Similar to the Bitcoin Lightning Network, CFN channels can be kept active indefinitely. Through the "multi-hop" mechanism, N channels that are kept active can form an off-chain asset payment/settlement network.

However, CFN is not a 100% replica of the Lightning Network. Compared to the Lightning Network, CFN has several key new features:

  • Multi-asset support: No longer limited to a single currency, it paves the way for complex cross-chain financial applications.
  • Programmability: Based on CKB's Turing complete smart contracts, it supports more complex conditional execution and business logic.
  • Cross-chain interoperability: Native design supports interaction with other UTXO chains (such as BTC) in the Lightning Network.
  • More flexible state management: Thanks to CKB's Cell model, CFN can more efficiently manage channel states.

It is worth mentioning that CFN reserves space for future upgrades to more advanced payment channel technologies (such as PTLC). This forward-looking design gives CFN an advantage in technological evolution.

Due to the technical isomorphism between CFN and the Bitcoin Lightning Network (such as the same hash algorithm and time lock script), they naturally have the foundation to achieve atomic cross-chain swaps.

2

(Atomic cross-chain swap process between CFN and the Lightning Network)

Let's understand this process through a specific example:

  • Alice (CKB side) wants to send 100 CKB equivalent BTC to Bob (BTC side).
  • Bob generates a secret S and gives its hash H(S) to Alice.
  • Alice creates an HTLC on CFN, locking 100 CKB with the condition of providing the correct S.
  • At the same time, a corresponding HTLC is created on the BTC Lightning Network, locking the equivalent BTC.
  • Bob reveals S to claim the BTC, and S is also obtained by the intermediate nodes.
  • The intermediate nodes use S to unlock Alice's 100 CKB on CFN.

The atomic cross-chain swap between CFN and the Lightning Network is not limited to the native assets of BTC and CKB, but also supports RGB++ assets, Taproot assets, etc. For example, the first meme coin in the ecosystem, Seal, and the stablecoin RUSD of the Bitcoin ecosystem stablecoin protocol Stable++.

CFN provides a fast and low-cost transfer channel for RGB++ assets. Users can quickly trade various RGB++ assets on CFN without settling on the CKB main chain every time.

At the same time, RGB++ provides CFN with a rich variety of asset types. This greatly expands the application scenarios of CFN, making it not limited to simple value transfers.

By combining the two, it is possible to achieve "Bitcoin-level security + Ethereum-level functionality + Lightning Network-level speed". This is a highly competitive combination.

In addition to cross-chain payments, CFN has potential applications in the three major business models of the encryption industry: asset issuance, lending, and trading. These potential applications include:

  • Cross-chain liquidity mining: Users who provide cross-chain liquidity for assets supported by CFN can receive rewards, stimulating new asset issuance and trading. For example, building a meme coin launch platform based on CFN in the Bitcoin ecosystem.
  • Atomic cross-chain lending: Users can lock assets on the BTC network and borrow stablecoins of corresponding value on the CKB network, without the need to trust third parties throughout the process.
  • Cross-chain DEX: Using CFN, a decentralized exchange can be built to support fast and low-cost trading of BTC, CKB, and various RGB++ assets.

If the above potential scenarios can be realized in the end, the Bitcoin ecosystem can use CFN's cross-chain atomic swap capabilities to achieve native stablecoins, native lending, native DEX, and other DeFi applications. Therefore, CFN is not just a CKB version of the Lightning Network, but a programmability extension solution with global significance in the Bitcoin ecosystem.

CFN is about to release its testnet. We can observe its future development from the following indicators:

  • The timing of successful interoperability with the BTC Lightning Network.
  • The growth curve of cross-chain transaction volume after the mainnet launch.
  • The number and quality of cross-chain DApps developed based on CFN.
  • The adoption rate of RGB++ assets on CFN.

In conclusion, among the many Bitcoin programmability extension solutions, including Babylon, Merlin, BoB, and Mezo, CFN stands out as a unique existence. It chooses to return to the classic paradigm of the Bitcoin Lightning Network and innovate, thereby possessing the powerful consensus of Bitcoin's native nature and high scalability. It has the potential to surpass competitors and ultimately win in the infrastructure competition of BTCFi.

That's all.

📖 Recommended reading:

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.