# zk-SNARK Merkle-Sum Tree Proof-of-Reserves Audit Guide

> Cryptographic engineering breakdown of zk-SNARK and Halo2 Merkle-Sum Tree Proof-of-Reserves: proving total customer liabilities without leaking user balances.

Canonical: https://instledgerwire.com/stories/zk-snark-merkle-sum-tree-proof-of-reserves-liabilities-audit
Last updated: 2026-11-14T19:45:14.814Z

**Publication:** Institutional Ledger
**Category:** Institutional Crypto Prime Margin
**Published:** 2026-11-13T09:25:25.915Z
**Author:** Julian Mercer, CFA (CFA, Digital Asset Market Structure & Custody Lead)
**Reviewer:** Not recorded

## Answer-first summary

Standard Merkle trees leak sibling balances or remain vulnerable to injected negative accounts. Combining Merkle-Sum Trees with Halo2/Plonky2 zk-SNARK circuits proves complete exchange solvency with zero privacy leakage.

## Key takeaways

- First-generation Maxwell-style Merkle-Sum Trees (2014) embedded plaintext sibling balances along each inclusion path—leaking wealthy institutional neighbors’ balances unless split or blinded.
- Modern zk-SNARK Proof-of-Reserves (Halo2 / Plonky2) wraps the entire Merkle-Sum state transition inside a zero-knowledge arithmetic circuit—revealing zero sibling balance data while proving the root sum equals exact aggregate customer liabilities.
- Multi-asset zk-PoR circuits evaluate 300+ token columns simultaneously inside each user leaf, applying conservative price-haircut constraints whenever margin users carry cross-asset borrows.
- Solvency holds ONLY when thousands of independent institutional and retail users run open-source CLI verifiers to confirm their exact Hash(UID || Nonce || Balances) leaf sits inside the published Merkle root!

## Related financial entities

- **FASB ASU 2023-08 (ASC 350-60) Fair-Value Accounting for Institutional Crypto** (FASB-ASC-350-60) — license: FASB ASU 2023-08 (ASC 350-60) Fair-Value Accounting for Institutional Crypto (FASB-ASC-350-60) refers to an institutional financial benchmark and regulatory standard monitored by Financial Accounting Standards Board (US), currently calibrated at 100% (Quarterly Fair-Value Remeasurement) as of October 2026.
- **SEC Staff Accounting Bulletin No. 122 (SAB 122) & FASB ASC 450-20 Custody Rule** (SEC-SAB-122) — license: SEC Staff Accounting Bulletin No. 122 (SAB 122) & FASB ASC 450-20 Custody Rule (SEC-SAB-122) refers to an institutional financial benchmark and regulatory standard monitored by SEC Office of the Chief Accountant (US), currently calibrated at 0.0% (Balance-Sheet Liability Gross-Up) as of October 2026.

## Analysis

Within seventy-two hours of FTX's November 2022 collapse, half a dozen crypto exchanges rushed to publish lists of cold-wallet addresses containing billions of dollars in Bitcoin and Ether—calling them "Proof of Reserves." Vitalik Buterin and institutional cryptographers immediately pointed out why an asset list alone proves **nothing**: **knowing a bank has $8 billion in its vault tells you zero about its solvency if it secretly owes depositors $14 billion!** Solving the liabilities side without exposing confidential institutional account sizes required marrying **Merkle-Sum Trees** with **zk-SNARK zero-knowledge circuits**.

## Why Plain Merkle Trees Fail—and Plain Merkle-Sum Trees Leak Alpha

In our [institutional crypto prime brokerage cornerstone guide](/stories/institutional-crypto-prime-brokerage-netting-por-guide-2026), we define two non-negotiable properties of an institutional liabilities audit: **soundness** (the venue cannot understate total liabilities) and **zero-knowledge privacy** (a competitor cannot deduce your fund's $75M BTC position).

Why did earlier designs struggle to achieve both at once?
1. **Standard Hash-Only Merkle Trees**: If each leaf only hashes `H(UID, Balance)` without summing balances upward, the root contains **no aggregate liability number**—the exchange can claim total liabilities are $1B when the leaves actually add up to $5B!
2. **Unblinded Maxwell Merkle-Sum Trees (2014)**: Greg Maxwell solved soundness by tagging every node with `(Hash, Balance_Sum)`, championed early in production by [BitMEX](/venues/bitmex). However, to verify the path from your leaf to the root, the exchange had to hand you the `Balance_Sum` of your sibling leaf and sibling subtrees—leaking proprietary institutional balance sizes unless accounts were randomly sharded into thousands of tiny virtual leaves!

![Four-stage zk-SNARK Merkle-Sum Tree Proof-of-Reserves pipeline from user balance hashing through Halo2 range constraints to root comparison](/api/figure?type=flow&title=zk-SNARK%20Merkle-Sum%20Tree%20Liabilities%20Verification%20Pipeline&subtitle=Proving%20aggregate%20customer%20liabilities%20without%20exposing%20sibling%20institutional%20accounts&steps=1.%20Salted%20User%20Leaf%3A%3ALeaf_i%20%3D%20PoseidonHash%28UID_i%2C%20SecretSalt_i%2C%20AssetVector_i%5B1..K%5D%29%7C2.%20zk%20Circuit%20Check%3A%3AProves%20Net_Equity_i%20%3E%3D%200%20AND%20Parent.Sum%20%3D%3D%20Left.Sum%20%2B%20Right.Sum%7C3.%20Root%20Publication%3A%3APublishes%20RootHash%20%2B%20TotalLiabilities%5B1..K%5D%20%2B%20zk-SNARK%20Proof%20pi%7C4.%20Client%20Inclusion%3A%3AInstitution%20runs%20open-source%20verifier%3A%20confirms%20own%20leaf%20%2B%20pi%20valid!&metrics=Hash%20Function%3A%3APoseidon%20%2F%20Rescue%3A%3ASNARK-friendly%20algebraic%20hash%7CRange%20Bit-Width%3A%3A64-Bit%20Unsigned%20Int%3A%3APrevents%20modular%20field%20wrap-around%7CMulti-Asset%20Cap%3A%3A300%2B%20Token%20Columns%3A%3ACovers%20spot%2C%20margin%20%26%20perp%20PnL%7CAudit%20Standard%3A%3AZero%20Sibling%20Leak%3A%3AConfidential%20institutional%20size)

## Inside a Halo2 / Plonky2 zk-SNARK Proof-of-Reserves Circuit

In late 2022, Vitalik Buterin formalized how **zk-SNARKs** eliminate every privacy leak while strengthening multi-asset margin soundness:
- **Poseidon Algebraic Hashing**: Traditional SHA-256 costs ~25,000 R1CS constraints per hash inside a SNARK circuit; **Poseidon** or **Rescue-Prime** operates natively over the prime field `F_p`, requiring fewer than **300 constraints per hash**—letting prover clusters digest 50 million user accounts in minutes!
- **Two-Layer Verification**:
 1. **Global Batch Circuit Proof (`pi_root`)**: A single Halo2/Plonky2 proof proves to the entire world that the Merkle tree was constructed honestly from `N` user leaves, every internal sum conserved exact token quantities without field overflow, and **no user had negative net account equity**!
 2. **Zero-Knowledge User Inclusion Proof**: Each user downloads a compact Merkle path of *blinded commitments*—verifying in `< 15 ms` inside their browser or institutional Python script that their exact `UID`, `Nonce`, and 300+ asset balances (spot + perpetual unrealized PnL) were locked into `RootHash`!

| PoR Dimension | Asset-Only Wallet Dashboard | Plaintext Merkle-Sum Tree | **zk-SNARK Merkle-Sum Tree (2026)** |
| :--- | :--- | :--- | :--- |
| **Liabilities Included?** | **No** — shows assets only | **Yes** — sums user leaves | **Yes** — sums multi-asset leaves + perp PnL |
| **Blocks Negative Leaves?** | N/A | Partial (if siblings inspect path) | **Mathematically Enforced** (`0 <= v < 2^64`) |
| **Protects Whale Privacy?** | Yes | **No** — leaks sibling subtree totals | **100% Zero-Knowledge** — zero sibling data |
| **Multi-Asset Margin Support** | None | Single-asset per tree | **Unified cross-margin equity constraint** |
| **Institutional Examples** | Early CEX dashboards | [BitMEX](/venues/bitmex) open-source MST pioneer | Modern Halo2/Plonky2 verifiers ([Backpack](/venues/backpack-exchange)) |

## Timestamp Synchronization: Locking Block Heights Across 20+ Chains

A subtle attack vector against naive Proof-of-Reserves is **inter-chain window-dressing ("musical chairs")**: moving $100M of BTC at 11:55 UTC for the BTC snapshot, swapping or borrowing ETH at 12:05 UTC for the ETH snapshot!

Rigorous zk-PoR protocols (implemented across venues like [Backpack Exchange](/venues/backpack-exchange) and audited alongside [SEC SAB 122](/entities/sec-sab-122-sec-staff-accounting-bulletin-no-122-sab-122-fasb-asc-450-20-custody-rule) and [FASB ASC 350-60](/entities/fasb-asc-350-60-fasb-asu-2023-08-asc-350-60-fair-value-accounting-for-institutional-crypto) reconciliations) enforce an **atomic UTC cut timestamp** (e.g., `00:00:00 UTC`): mapping that exact second to deterministic block heights across Bitcoin, Ethereum, Solana, and Arbitrum, and pairing liabilities with [cryptographic cold-wallet signature challenges](/stories/on-chain-wallet-ownership-cryptographic-signature-challenges).

```formula
zk_PoR_Circuit_Constraints_For_Every_Node_And_Leaf (Prime Field F_p, p ~ 2^254):
 1. Leaf Equity Constraint (for user i across assets k = 1..M):
 Sum_{k=1..M} ( Balance_{i,k} *Conservative_Haircut_Price_k ) >= 0 [Enforced via 64-bit lookup table!]
 2. Internal Node Conservation (for parent P with children L, R and asset k):
 P.Sum[k] === L.Sum[k] + R.Sum[k] AND P.Hash === Poseidon(L.Hash, L.Sum_Commit, R.Hash, R.Sum_Commit)
 3. Global Solvency Invariant at Snapshot Block Timestamp T_0:
 For EVERY asset k: Verified_OnChain_Unencumbered_Wallet_Sum[k] >= Root.Sum[k] * (1 + Safety_Buffer_k)
```

## Automating Daily Inclusion-Proof Bots on Institutional Prime Desks

Remember the golden rule of zk-PoR: **a Merkle tree only catches an omitted account if the owner of that account checks their leaf!** Institutional ODD teams run an automated cron job after every published snapshot on [Bitstamp](/venues/bitstamp), [Bitfinex](/venues/bitfinex), or [Backpack Exchange](/venues/backpack-exchange) that queries the fund's internal sub-ledger balance at `T_0`, recomputes the salted leaf hash, and asserts cryptographic inclusion against the public Merkle root—alerting risk officers if any discrepancy exceeds `$0.01` (see also [negative-balance non-existence proofs](/stories/negative-balance-non-existence-proofs-hidden-encumbrance-risk)).

![Comparison of cryptographic guarantees, privacy protection, and fraud resistance across four generations of exchange Proof-of-Reserves](/api/figure?type=bars&title=Evolution%20of%20Exchange%20Proof-of-Reserves%20Architectures&subtitle=Evaluating%20privacy%2C%20negative-balance%20defense%2C%20and%20completeness%20across%204%20PoR%20generations&steps=Gen%200%20%20Public%20Wallet%20List%20Only%20%28No%20Liabilities%29%3A%3AUSELESS%20ALONE%3A%20Ignores%20customer%20liabilities%20%26%20off-chain%20loans%20completely%7CGen%201%20%20Plaintext%20Maxwell%20Merkle-Sum%20%282014%29%3A%3AProves%20non-negative%20sum%2C%20but%20leaks%20sibling%20%26%20subtree%20balances%20to%20neighbors%7CGen%202%20%20Pedersen%20Commitment%20Provisions%20%282015%29%3A%3AStrong%20privacy%20via%20elliptic-curve%20homomorphic%20commitments%3B%20heavier%20proof%20size%7CGen%203%20%20Halo2%20%2F%20Plonky2%20zk-SNARK%20MST%20%282026%29%3A%3AGOLD%20STANDARD%3A%20Constant%2Ftiny%20proof%2C%20300%2B%20assets%2C%20zero%20leak%2C%20%3C15ms%20verify!&metrics=Inclusion%20Check%3A%3AMandatory%20Bot%20SOP%3A%3ACatches%20omitted-account%20fraud%7CAsset%20Pairing%3A%3ASame%20Block%20Height!%3A%3ALocks%20BTC%2FETH%20block%20to%20DB%20cut%7CCPA%20Overlay%3A%3AISAE%203000%20%2B%20zk-PoR%3A%3AAudits%20off-chain%20encumbrances%7CVenue%20Leaders%3A%3ABitMEX%20%2F%20Backpack%3A%3AOpen-source%20verifier%20repos)

## Cryptographic Audit Checklist for Institutional ODD Teams

Due diligence officers active in our [Digital Asset Prime Brokerage & PoR hub](/topics/institutional-crypto-prime-margin) require open-source verifier code (never closed-source web widgets!), confirm transparent Plonky2/Halo2 proving systems under [ESMA](/regulators/esma) and [SFC](/regulators/sfc) custodial transparency expectations, and validate venue records via our [verification portal](/verify).

## Frequently asked questions

### What information leak plagued early 2014 Maxwell Merkle-Sum Tree Proof-of-Reserves implementations?

In a raw unblinded Merkle-Sum Tree, verifying that your leaf L_0 ($50k) sums upward to the root requires handing you the balance of your immediate sibling L_1 ($42M whale!), plus every aunt/uncle subtree sum up to the root! Institutional funds refused to let random retail neighbors inspect subtree balances—solved completely by zk-SNARKs or Pedersen commitments (Provisions).

### How does a zk-SNARK Halo2 or Plonky2 circuit eliminate trusted-setup risks in Proof-of-Reserves?

Early Groth16 zk-SNARKs required a circuit-specific "trusted setup ceremony"—where compromised toxic waste could forge fake solvency proofs! Transparent polynomial commitment schemes like Halo2 (IPA) and Plonky2 (FRI-based STARK/SNARK) require zero trusted setup or universal updatable KZG, eliminating cryptographic backdoor risk.

### What happens if an exchange simply omits a $200M whale account from the Merkle-Sum Tree altogether?

Zero-knowledge math proves the sum of included leaves—it cannot stop an exchange from omitting a leaf UNLESS users verify inclusion! That is why institutional prime desks run automated hourly bots checking that their exact API balance and unique account salt appear inside every published Merkle root—any omission triggers an instant global cryptographic whistle-blow!

### How often do top institutional venues generate zk-PoR snapshots in 2026?

While legacy monthly CPA snapshots took 30–45 days and massive GPU clusters, optimized Plonky2/Halo2 circuits prove 20M–100M multi-asset user leaves in under 25 minutes on commodity cloud GPUs—enabling monthly, weekly, or even daily automated solvency proofs (e.g., Backpack Exchange, BitMEX, OKX, Binance).


## Source URLs

- https://vitalik.eth.limo/general/2022/11/19/proof_of_solvency.html
- https://eprint.iacr.org/2015/1008.pdf
- https://www.hkma.gov.hk/eng/news-and-media/press-releases/

## Citation

- APA: Julian Mercer, CFA. (2026). zk-SNARK Merkle-Sum Tree Proof-of-Reserves: Auditing Exchange Liabilities. Institutional Ledger. https://instledgerwire.com/stories/zk-snark-merkle-sum-tree-proof-of-reserves-liabilities-audit
- Canonical article: [zk-SNARK Merkle-Sum Tree Proof-of-Reserves: Auditing Exchange Liabilities](https://instledgerwire.com/stories/zk-snark-merkle-sum-tree-proof-of-reserves-liabilities-audit)
- Site research index: [Institutional Ledger](https://instledgerwire.com/llms-full.txt)
