File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
contracts/utils/cryptography Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,16 @@ pragma solidity ^0.8.0;
66/**
77 * @dev These functions deal with verification of Merkle Tree proofs.
88 *
9- * The proofs can be generated using the JavaScript library
10- * https://github.com/miguelmota/merkletreejs[merkletreejs].
11- * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
12- *
13- * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
9+ * The tree and the proofs can be generated using our
10+ * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
11+ * You will find a quickstart guide in the readme.
1412 *
1513 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
1614 * hashing, or use a hash function other than keccak256 for hashing leaves.
1715 * This is because the concatenation of a sorted pair of internal nodes in
1816 * the merkle tree could be reinterpreted as a leaf value.
17+ * OpenZeppelin's JavaScript library generates merkle trees that are safe
18+ * against this attack out of the box.
1919 */
2020library MerkleProofUpgradeable {
2121 /**
You can’t perform that action at this time.
0 commit comments