Merkle Sum Tree
Last Updated on 23. April 2024 by Mario Oettler
A Merkle Sum Tree (MST) is a variant of a Merkle tree which not only combines the pairwise hashes of its leaves and nodes but also the sum of an additional amount field in its leaves and nodes. Both, hashes and sums of the child nodes/leaves are used as input for the hashing function to create the parent node.

This data structure is helpful to commit to the value or amount of a piece of data. In Taproot Assets, a Merkle sum tree is used to prevent inflation of assets. That means, they hinder malicious actors to arbitrarily create more assets than planned, as the total amount of assets is stored in the root.
With this tool, you can figure out how a Merkle sum tree works.