MerkleTree
scalus.cardano.onchain.plutus.crypto.tree.MerkleTree
object MerkleTree
Plain Merkle tree for static membership verification.
Built once from a known set of elements. Supports only membership proofs — no insert/delete/append. This is the cheapest on-chain option when the set is static.
Membership proofs use the same interleaved format as IMT: D * (direction[1] + sibling[32]) = D * 33 bytes. The depth is derived from the proof length, so no depth parameter is needed.
Cost: D + 1 blake2b_256 calls for depth D.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MerkleTree.type
Members list
In this article