solana-developers / compressed-nfts

Example code to use compressed NFTs (using state compression) on Solana

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do you store the merkle tree?

lurais opened this issue · comments

commented

How do you store the merkle tree? How do you store it in a ledger?

The Merkle tree is composed of leaves, the leaves are stored in the transaction information, and the entire tree can be recreated by indexing all transactions that use the Merkle Tree.

commented

Merkle 树由树叶组成,树叶中存储交易信息,通过索引所有使用 Merkle Tree 的交易,可以重新创建整棵树。

Is that means you won't store the real tree, and only just store the transactions ,If some one need the tree, they can build the tree by themselfs?

I'm closing this since Noah answered so wonderfully 🥇