Liquid

From claude-dev-suite/claude-dev-suite · View interactive version

Liquid is an AI agent skill from the GitHub repository claude-dev-suite/claude-dev-suite. Liquid Network: federated sidechain by Blockstream. Confidential Transactions, asset issuance (LBTC, USDt-Liquid, others), 2-min blocks, n-of-m federation peg-out. Elements codebase. USE WHEN: building on Liquid, peg-in/peg-out integrations, designing CT-based privacy.

How to use this skill

Skill file

Liquid Network

Liquid is a federated sidechain pegged to Bitcoin, developed by

Blockstream. Funds are locked on Bitcoin via federation multisig and

unlocked on Liquid as L-BTC.

Codebase: Elements (github.com/ElementsProject/elements), a

Bitcoin Core fork with extensions.

Architecture

appears on Liquid after 102 confirmations.

after withdrawal queue.

Confidential Transactions

Liquid implements Confidential Transactions (CT):

commitments).

the amount.

Issued Assets (IA)

Beyond L-BTC, Liquid supports:

Issuance specifies:

Peg-in / Peg-out

Peg-in (BTC → L-BTC)

  1. User sends BTC to federation multisig with claim script.
  2. Wait 102 confirmations on Bitcoin.
  3. User submits claim on Liquid; L-BTC issued.

Peg-out (L-BTC → BTC)

  1. User submits L-BTC to federation address on Liquid.
  2. Federation processes withdrawal queue.
  3. BTC released to user's specified address on Bitcoin.

Peg-out is whitelist-based (regulated; Liquid-Pro members can

peg out; retail users typically use exchanges for peg-out).

Implementation

Use cases

60 min).

competitors.

Federation governance

Lightning on Liquid

Liquid has Lightning compatibility:

provider, is offline since 2026-08-03: all mainchain,

Lightning and Liquid swaps disabled "until further notice", no

relaunch date announced as of 15 September 2026.

BTC ↔ L-BTC ↔ Lightning routes (submarine, reverse submarine and

chain swaps). Limited beta since 10 Aug 2026, "in beta testing

with select participants"; access by request.

Compared to other L2s

| Aspect | Liquid | RSK | Stacks |

|--------|--------|-----|--------|

| Trust model | Federation | Merge-mining + federation | PoX (uses BTC) |

| Smart contracts | Limited (Elements opcodes) | EVM-compatible | Clarity |

| Peg | 2-way | 2-way | 1-way (sBTC bidirectional) |

| Privacy | CT default | None | Limited |

Security: the September 2026 cache-collision exploit

On 6 September 2026 (Liquid block 4,050,336) an attacker

exploited a **cache-key collision in Elements' range-proof

verification cache**. Elements memoises positive range-proof

verifications; a cache hit is a positive result, so a key

collision bypasses verification entirely.

Two defects are visible in the Elements history:

keyed on salted_hash(proof || commitment) only, omitting

the asset generator and the scriptPubKey.

elements-23.3.x branch 3 Sept 2026) concatenated the

fields without length prefixes, so bytes shift across the

boundary between the two variable-length fields and distinct

tuples collide.

Outcome, as of 15 September 2026:

(~$320M); the federation reserve fell from ~4,200 BTC to

~197 BTC (~95% drained).

funds moved via the SideSwap peg-out authorisation key, "but

that key was not compromised, nor were any others". The HSMs

signed because the peg-out was valid under the consensus

rules they ran — an HSM policy is only as sound as the

consensus code behind it.

transaction-free 10 Sept 2026; peg operations (including

PAK-authorised peg-outs) stayed suspended past that.

self-declared bounty; Blockstream refused to pay it.

Minimum safe version: elements-23.3.4 (9 Sept 2026). PR

#1600 "sigcache: harden range proof cache keys and add

-norangeproofcache option" moves both proof caches from raw

CSHA256 concatenation to CHashWriter (length-prefixed

serialisation), adds the missing vTags to the

surjection-proof key, and adds -norangeproofcache to disable

the range-proof cache without recompiling.

Limitations

loss. Consensus-code bugs are the other systemic risk, and the

one that actually fired in September 2026 (above).

See also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.