How do you store the merkle tree?
lurais opened this issue · comments
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.
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?
Yes exactly! The code to do this is located at https://github.com/metaplex-foundation/digital-asset-rpc-infrastructure and the actual instruction parsing code is here: https://github.com/metaplex-foundation/blockbuster/blob/main/blockbuster/src/programs/bubblegum/mod.rs
I'm closing this since Noah answered so wonderfully 🥇