Commit cdde3cb 1 parent 908fa6b commit cdde3cb Copy full SHA for cdde3cb
File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -386,12 +386,13 @@ NB: If the hash provided to the `ClosestProof` function is known prior to the
386
386
tree being filled and closed there is the possibility of placing a leaf where
387
387
the hash will lead. If used ** as intended** the hash provided should ** not** be
388
388
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.
395
396
396
397
### Compression
397
398
You can’t perform that action at this time.
0 commit comments