We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f61b669 commit 7c7084aCopy full SHA for 7c7084a
src/lib/provable/merkle-tree-indexed.ts
@@ -104,7 +104,7 @@ class IndexedMerkleMapBase {
104
105
/**
106
* 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.
+ * This provides protection against a attack vector mentioned in https://github.com/o1-labs/o1js/pull/2114#issuecomment-2948339955
108
*/
109
get root(): Field {
110
return Poseidon.hash([this._internalRoot, this.length]);
0 commit comments