This article was translated from Japanese with AI. Read the original (日本語) · Report a translation issue

What comes to mind when you hear the word Ark? You've probably heard the name but aren't quite sure what it actually is, or you have a vague sense that it has something to do with the Lightning Network.

This article explains VTXOs, one of Ark's basic building blocks, to give you a concrete picture of how Ark works. I hope it turns what has so far been a hazy, shapeless idea into something clear.

One caveat: Ark has no shared specification, so this explanation is based on Bark, the implementation by Second. Treat it as one example for understanding the concepts, and keep in mind that the details may change in the future.

💡
The two main public implementations of Ark are Second's "Bark" and Ark Labs' "Arkade." Bark focuses on off-chain payments, while Arkade is considerably more complex because it aims to support DeFi.

Before getting to the main topic, let's cover some background on Ark.

Ark: Solving Lightning's Pain Points

Since the Lightning Network (LN) arrived in 2018, off-chain payments have spread widely as a solution to Bitcoin's scalability problem. Even so, my impression is that few people run their own Lightning node, open channels and make Lightning payments themselves.

One likely reason people don't run nodes is the hassle of management: maintaining channels, acquiring inbound liquidity, setting fees and so on.

LNにおけるInbound Capacityの獲得方法8選
Lightning NetworkでInbound Capacityの不足を解消したい方やルーティングノード運用者向け。チャネル購入やリバランス、PeerSwapなど具体的な獲得方法8選を解説。ノード運用スタイルに合わせた最適な流動性管理の戦略が見つかります。
LN手数料分布から読み解くノード運用の傾向|ゴシップ情報で可視化
ライトニングネットワーク(LN)の手数料設定に悩むノード運用者向けに、ゴシッププロトコルで取得したデータからBase_feeやFee_rate、インバウンド手数料の分布を可視化。ネットワーク全体の手数料傾向を累積分布図で俯瞰し、ノード運用における手数料戦略の参考になる知見をまとめました。

Ark is a technology that sidesteps this complex setup, enabling fast, low-fee off-chain payments while also connecting to Lightning so you can send and receive there.

How Ark Works: ASPs and Non-Custodial Design

In practice, you deposit bitcoin with a server called an ASP (Ark Service Provider), and that lets you make payments off-chain.

You might worry, "Couldn't the ASP steal my funds?" Bark addresses this with a mechanism called Emergency Exit. Even if the ASP acts dishonestly, Emergency Exit lets you withdraw your bitcoin back to yourself at any time, so the system qualifies as non-custodial (the bitcoin remains under the user's control).

Also, if an ASP did act dishonestly, word would spread instantly across the decentralized network, its reputation would collapse, and it could no longer stay in business. On top of that, Emergency Exit makes it impossible to steal users' funds, so an ASP has nothing to gain by cheating.

Now let's get to the main topic: VTXOs.

What Is a VTXO (Virtual Transaction Output)?

A VTXO (Virtual Transaction Output) is one of Ark's basic building blocks. Just as Bitcoin uses UTXOs, Ark uses VTXOs to hold balances and make payments.

If you're not familiar with UTXOs, see the article below.

UTXOとは?ビットコイントランザクションにおける仕組みを解説
ビットコイン特有の概念UTXOを、初心者にも理解できるよう解説。ウォレット残高との関係、インプット/アウトプット、口座残高方式を採用しない理由、手数料やコインベーストランザクション、ジェネシスブロックまで丁寧に説明し、中央管理者なしで二重支払いを防ぐビットコインの核心設計を学べます。

VTXO stands for "virtual transaction output," but in what sense is it virtual? Start by looking at the diagram below.

Simplified quadtree diagram

This diagram represents a quadtree. In reality each node splits into four branches, but I've simplified it here to make it easier to read.

In Bark, only the top of the quadtree (the root) exists on-chain, as a single UTXO. It looks like one UTXO on-chain, but inside it multiple people share the bitcoin, arranged in a quadtree structure. In other words, each of the branches splitting off off-chain is a UTXO, and because they exist only virtually, they are called VTXOs.

Let's pause and recap. All you need to picture is this: the blockchain shows a single UTXO, but its internal structure is one in which hundreds of people virtually share that UTXO. Since each level branches four ways, even just five levels means 4 to the 5th power, or 1,024 people sharing the bitcoin.

Bark actually uses a quadtree, but from here on I'll use a binary tree to keep the explanation simple.

Binary tree

The top of the tree, the only part that exists on-chain, is called the "root," the middle levels are "branches," and the ends of the tree are "leaves."

Let's use this diagram to build up a picture of VTXOs. Imagine eight people sharing bitcoin. At the root it is a single UTXO; at the branches it becomes VTXOs shared by four people each, and at the next level down, VTXOs shared by two people each. The eight VTXOs at the leaves correspond to each individual's bitcoin.

As an aside, covenants are a hot topic in the Ark world because they can restrict where funds are sent, which could bring innovation and simplification to the design of the tree structure. See the article below for details.

2023年はビットコイン開発への関心が高まった1年だった
今年も1年を振り返る時期になってまいりました。私は久しぶりの海外旅行やカンファレンス登壇などで充実させた一年でした。皆さんの2023年はどうでしたか? 先週、読者様から以下のようなリクエストが寄せられていました。 Bitcoin Optech Newsletterの2023年まとめ(https://bitcoinops.org/ja/newsletters/2023/12/20 )を読みましたが、ソフトフォーク提案が様々あり、どのOPコードがメインで議論されているかなど、開発の方向性がよく理解出てきていません。 今年の開発の総括や、来年以降の展望などこちらでもおまとめいただけると大変ありがたいです。 ちょうど年の瀬で振り返りに最適な時期でもあるので、今日は今年のビットコイン開発をまとめ、そのうちいくつかのトピックについて来年の予想をしていこうと思います。他にもご質問やご要望などあれば歓迎致しますので、どしどし教えていただければ幸いです! ・たくさんの新型L2が乱立、ソフトフォーク議論が再燃 ・粗雑なプロトコルも複数登場、議論の的に ・ライトニングはLSPの時代へ本格突入

Periodic Renewal Events: Rounds

VTXOs have an expiry, set at about 30 days in Bark. Because Ark's design has the ASP providing liquidity (bitcoin) to make off-chain payments possible, the ASP would be harmed if users held VTXOs forever or lost access to them. So VTXOs are given an expiry, and the ASP can reclaim expired VTXOs on-chain.

Periodic event: rounds diagram

Users need to renew their VTXOs before they expire. By joining an event the ASP holds regularly, they can "refresh": discard their old VTXOs and receive new ones. These regularly held events are called "rounds," and in Bark they take place roughly once an hour.

Users don't need to join every round; joining one before their VTXOs expire is enough.

Three Types of VTXO

Next, let's look at how VTXOs move around in Ark. For this explanation, I'll classify VTXOs by the type of transaction that creates them. (Classification based on Second.)

  • Board VTXO: a VTXO created when a user joins Ark for the first time
  • Refresh VTXO: a VTXO obtained by refreshing during a round to avoid expiry
  • Spend VTXO: a VTXO created for an instant payment without waiting for a round
💡
Moving from on-chain into the off-chain system (the Ark server) is called onboarding, and moving from the off-chain system (the Ark server) back on-chain is called offboarding.

Let's start with the Board VTXO.

Board VTXO

Imagine a user depositing bitcoin with an ASP in order to use Ark. The VTXO is created as shown in the diagram below.

Board VTXO

A Board VTXO is the VTXO created when a user first moves bitcoin into Ark. Since there is only one user, the bitcoin isn't shared with anyone else, and a single VTXO is created at the leaf.

The resulting VTXO can be moved back on-chain at any time, so it can be held trustlessly. Specifically, by broadcasting (publishing the transactions on-chain) from the "root" down to the "leaf," you can receive your bitcoin on-chain.

💡
I wrote "from the root to the leaf" for the sake of explanation, but the root already exists on-chain, so in reality only the leaf needs to be broadcast.

The downside is that, for now, the user is alone in the transaction tree and has to bear all the on-chain fees. So by refreshing before expiry, the user joins a transaction tree in which the UTXO is shared with multiple users.

Refresh VTXO

By joining a round and refreshing, a user can join a tree in which bitcoin is shared with many others.

Refresh VTXO

This diagram shows the whole tree the user has newly joined. The user's own bitcoin is the VTXO at the leaf, while the root and branches represent bitcoin being shared.

Refresh VTXOs are created during an Ark server round, either when refreshing VTXOs that are close to expiry or when the user wants to improve the security of a Spend VTXO (explained in the next section on Spend VTXOs).

As with a Board VTXO, the resulting VTXO lets you receive your bitcoin on-chain at any time by broadcasting the "branch" and "leaf" transactions. The difference from a Board VTXO is that you don't have to bear all the on-chain fees; you only pay the transaction fees for the VTXOs along the path from your own leaf, through the branches, up to the root. And you don't need to pay fees for any transactions another user has already broadcast.

Spend VTXO

How do funds move within the same tree? Take a look at the diagram below.

Spend VTXO

The diagram above shows a payment from Alice's VTXO (the leaf at bottom right) to Bob. Payments within an Ark server branch off from an existing leaf as new VTXOs.

A Spend VTXO is a VTXO created instantly when a user sends a payment within the same Ark server. Using a technique called arkoor (Ark out-of-round), payments can be made instantly without waiting for the next server round.

However, Spend VTXOs come with a security concern. If Bob receives a Spend VTXO from Alice, the ASP and Alice could collude to undo that payment. In other words, Bob has to trust either the ASP or Alice.

💡
As long as either the ASP or Alice behaves honestly, the fraud cannot succeed. But the more senders there are, that is, the longer the chain of Spend VTXOs grows, the more Bob has to trust every previous sender.

To eliminate this security risk, Bob is advised to refresh. By obtaining a new VTXO (a Refresh VTXO) through refreshing, his trust model returns to the same fully trustless state as a Board VTXO.

Lightning Payments

Because bitcoin can only move within Ark between users of the same server, Lightning payments are likely to be the main use until Ark's user base grows. In this setup, the Ark server acts as a gateway to Lightning, so users don't have to deal with Lightning's complicated setup.

Lightning Payment

This is a conceptual diagram of a Lightning payment. When Alice wants to pay over Lightning, she can interact with the Lightning Network through the Ark server, using the VTXO at her leaf to communicate with the server.

To make Lightning payments and receipts atomic, Ark uses HTLCs, and the Ark balance is updated as a new VTXO branch grows through the arkoor transfer mechanism.

Sending incurs three fees: a routing fee, a liquidity fee and an ASP operating fee, while receiving is currently free in Bark. That said, the exact fees are still being worked out and are likely to change.

Summary

This article explained VTXOs, a basic building block of Ark.

Ark is a technology that enables fast, low-fee off-chain payments by depositing bitcoin with an ASP (Ark Service Provider), without the complicated channel management Lightning requires. The Emergency Exit mechanism keeps it non-custodial, so users can withdraw their funds on-chain at any time.

VTXOs, the core of Ark, look like a single UTXO on-chain, but internally they are virtual UTXOs in which multiple users share bitcoin through a tree structure. This article divided them into the following three types according to their role:

  • Board VTXO: a VTXO created when a user joins Ark for the first time
  • Refresh VTXO: a VTXO obtained by refreshing during a round to avoid expiry
  • Spend VTXO: a VTXO created for an instant payment without waiting for a round, using the arkoor technique

Until Ark has enough users, Lightning payments are expected to be the main use, with the Ark server acting as a gateway that frees users from Lightning's complex setup.

Ark is still a developing technology with no shared specification, but it is drawing attention as a strong option for addressing Lightning's shortcomings, and it will be worth watching how it evolves.