Skip to content

Commit 7c7084a

Browse files
committed
docs: clarify comment
1 parent f61b669 commit 7c7084a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/provable/merkle-tree-indexed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class IndexedMerkleMapBase {
104104

105105
/**
106106
* Public getter for the root that combines the the root of the indexed merkle tree and length.
107-
* This ensures length is included in the commitment.
107+
* This provides protection against a attack vector mentioned in https://github.com/o1-labs/o1js/pull/2114#issuecomment-2948339955
108108
*/
109109
get root(): Field {
110110
return Poseidon.hash([this._internalRoot, this.length]);

0 commit comments

Comments
 (0)