Skip to content

Commit e53bc2b

Browse files
committed
MerkleMap: describe what it is.
1 parent 6afcc06 commit e53bc2b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/provable/merkle-map.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ class MerkleMap {
1212

1313
/**
1414
* Creates a new, empty Merkle Map.
15+
*
16+
* A Merkle Map is a data structure that allows for efficient storage and
17+
* retrieval of key-value pairs. The values are stored in a Merkle tree,
18+
* and the keys are formed by using the first 254 bits of the key as an index.
19+
* The inner Merkle tree has a height of 256.
20+
*
1521
* @returns A new MerkleMap
1622
* @example
1723
* ```ts

0 commit comments

Comments
 (0)