Off-chain Bitcoin

Ark, in practice: bark

How does Second’s bark run Ark?

bark is Second’s Ark wallet and server. A boarded coin becomes a VTXO without waiting for a round; rounds use hash-locks so users sign their forfeits only after the round is on chain; out-of-round payments pass through checkpoint transactions; and the server caps how long and how deep any VTXO can get.

Built by
Second; on mainnet since 9 June 20261
Software
bark (wallet, SDK) and captaind (server), open source2
Second’s server
Rounds every hour; VTXOs live 28 days8,9
Template defaults
Lifetime 4,320 blocks; exit delay 144 blocks; trees split in four3,4

This page assumes the Ark chapter: VTXOs, rounds, forfeits and expiry.

Three ways to get a VTXO

Board and refresh VTXOs carry no trust beyond liveness; a spend VTXO carries the out-of-round assumption until it is refreshed or spent.8 Figure 1 follows one payment and one refresh.

A payment and a refresh

Figure 1.Alice pays Bob out of round, then Bob refreshes in an hArk round. Spending paths follow bark’s VTXO policies.

Rounds with hash-locks

Second’s rounds originally worked like the connector design in the Ark chapter: users had to sign forfeits before the round transaction was broadcast. Phones that cannot reliably wake up made that hard, so in January 2026 Second switched refreshes to hArk, short for hash-lock Ark.10,11

For each new VTXO the server picks a secret. The new leaf transaction needs it, as does the server’s claim of the forfeit output. The server broadcasts the round transaction first; the user signs the forfeit afterwards, whenever it comes online, and receives the secret in return. The signed forfeit can itself confirm without the secret. If the server publishes it but withholds the secret, the user can recover its output after a relative delay; if no forfeit is published, the old VTXO’s exit remains available. When the server claims the forfeit output, that claim reveals the secret on chain.5,10,11

Users still sign their branch of the tree during the round. Wallets that can’t can delegate that to co-signers; today the only co-signer is Second’s server, so delegating means trusting it for that round.11 Connectors remain in use for leaving Ark and for on-chain payments.10

Refresh, then cash the old VTXO too?

A refresh leaves Bob with a new VTXO, but his old one still has a working exit path: its pre-signed branch is still valid on Bitcoin. What stops him from refreshing and then broadcasting the old branch anyway? The forfeit he signed, and a server that watches the chain. Figure 2 plays it out.5,15

Figure 2.Bob refreshes in round 2, then tries to exit his round-1 VTXO as well. The block numbers after h are illustrative; 144 blocks is the template’s vtxo_exit_delta.

The whole defence rests on one asymmetry. Bob’s own path out of the old VTXO waits 144 blocks after it confirms, while the forfeit uses the cooperative key path, which Bob already signed and which needs no wait at all.5 The server stores the forfeit as the transaction that spends Bob’s old VTXO; when that VTXO shows up on chain, its watchman broadcasts the forfeit, and it always claims a forfeit output once one confirms.15 Revealing the secret p in that claim costs the server nothing, because Bob received p when he completed the refresh.

Two variations behave differently:

The Ark chapter shows the same attempt with a connector-based forfeit, as Arkade uses; the logic is the same, only what ties the forfeit to the new round differs.

Out-of-round payments

An arkoor payment spends exactly one VTXO; a payment larger than any single VTXO is split into several arkoor packages. Each goes through a checkpoint transaction with one output per destination, each spendable by the sender and server together or by the server alone at the round’s expiry height. Then one more transaction per output hands it to its owner.6

Second’s design notes give two reasons for checkpoints. Without them, a user could split a VTXO into a large tree of off-chain payments to itself, refresh them all, then exit the original, leaving the server to publish the whole tree to claim its forfeits. And one user’s exit would drag their neighbours’ coins on chain. With checkpoints, the server answers an exit by broadcasting one transaction, and other users’ coins stay in the checkpoint until expiry, as before.6

Two limits follow. The template server allows at most four outputs per input, and refuses to co-sign once a VTXO’s exit path is 100 transactions long; an ordinary arkoor hop adds two, with one more for dust isolation when needed.3,7 Outputs below twice the dust limit are moved into a separate “dust isolation” transaction so small payments don’t share a transaction with large change.6 Refreshing resets the depth.

Leaving, and Lightning

Cooperatively, an offboard swaps VTXOs for an on-chain payment, tied together with connectors.13 Alone, the user broadcasts the branch from the round output down to the VTXO, one confirmation at a time, then claims the coins after the exit delay. Other users exiting from the same round make it cheaper, because shared branches are already on chain.14

Lightning payments use special VTXOs that work as HTLCs with the Ark server, which is connected to Lightning, so users don’t manage channels.1,5

Fees. A refresh costs a liquidity fee: the amount, times the days left on the old VTXO divided by 365, times the server’s yearly rate, plus a share of the round’s on-chain fee. Second’s example: about 68 sats to refresh 100,000 sats with five days left at 5%.12

What you trust

The precise version

Spending policies (bark’s VtxoPolicy types):5

VTXO (Pubkey) key path: MuSig2(user, server) script: user after vtxo_exit_delta Checkpoint key path: MuSig2(user, server) script: server at the expiry height hArk leaf key path: MuSig2(user, server) script: MuSig2(user, server) + preimage of h script: server at the expiry height forfeit output server with the preimage of h, or user after vtxo_exit_delta

Template server settings (captaind.default.toml):3

vtxo_lifetime 4,320 blocks (about 30 days) vtxo_exit_delta 144 blocks (about 1 day) max_vtxo_exit_depth 100 transactions max_arkoor_fanout 4 outputs per input min_board_amount 20,000 sats required_board_confirmations 3 round_interval 10 s (regtest template)

Second’s documentation describes its own server as running rounds hourly with a 28-day lifetime.8,9 Tree nodes have at most four children.4

Exit depth counts the transactions between the chain and a VTXO. In bark’s test vectors a board VTXO has depth 1, a round VTXO 3, and each arkoor hop adds one checkpoint and one arkoor transaction.7

Sources

Code is cited from the GitHub mirror ark-bitcoin/bark at commit 04c5545 (9 October 2026).

  1. Bitcoin Magazine, “Second launches Bark on Bitcoin mainnet”, 9 June 2026.
  2. bark source code, ark-bitcoin/bark (also on Codeberg).
  3. Server configuration template: server/captaind.default.toml, lines 15–90.
  4. Tree radix: lib/src/tree/mod.rs, lines 6–7.
  5. VTXO policies: kinds, including Lightning HTLC VTXOs (lines 147–176); pubkey and checkpoint (lines 243–310); hArk leaf (lines 381–420); hArk forfeit output (lines 821–880); forfeit transaction construction (lib/src/forfeit.rs, lines 19–55).
  6. arkoor and checkpoints: lib/src/arkoor/mod.rs, module documentation; design notes docs/checkpoints.
  7. Exit depth test vectors: lib/src/vtxo/mod.rs, lines 1622–1642; max_vtxo_exit_depth in the template.
  8. Second documentation, “VTXOs”.
  9. Second documentation, “Rounds”.
  10. Second documentation, “Forfeits”.
  11. Second, “hArk explained”, 12 February 2026; changelog, 0.1.0-beta.6 (23 January 2026).
  12. Second documentation, “Liquidity”.
  13. Board and offboard flows: lib/src/board.rs; lib/src/offboard.rs.
  14. Second documentation, “Exit”.
  15. Forfeit transaction: lib/src/forfeit.rs, lines 21–55; watchman decisions for forfeited VTXOs and forfeit outputs: server/src/watchman/policy.rs, lines 92–183 and lines 344–400.

Checked 10 October 2026.