Skip to content

Commit cdde3cb

Browse files
committed
chore: address comment
1 parent 908fa6b commit cdde3cb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/SMT.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,13 @@ NB: If the hash provided to the `ClosestProof` function is known prior to the
386386
tree being filled and closed there is the possibility of placing a leaf where
387387
the hash will lead. If used **as intended** the hash provided should **not** be
388388
known prior to calling the method and the tree should not be updateable after
389-
the fact. If the hash were known prior to closing the tree and not inserting
390-
into it anymore a leaf could be inserted into the tree in such a way that it
391-
would always be produced from the `ClosestProof` method (as it is deterministic).
392-
When used as a pseudo-random challenge this is a vulnerability and if used in
393-
this manner care should be taken when and how the hash used in the proof is
394-
decided upon and when it is provided to the caller of the method.
389+
the fact. If the hash were known by the caller of the method, after the last
390+
update but prior to closing the trie a leaf could be inserted into the tree in
391+
such a way that it would always be produced from the `ClosestProof` method (as
392+
it is deterministic). When used as a pseudo-random challenge this is a
393+
vulnerability and, if used in this manner, care should be taken around how the
394+
hash used in the proof is decided upon and when it is provided to the caller of
395+
the method.
395396

396397
### Compression
397398

0 commit comments

Comments
 (0)