Skip to content

Commit 930a731

Browse files
Transpile d129b1b
1 parent f8f576f commit 930a731

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

contracts/utils/cryptography/MerkleProofUpgradeable.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
*/
2020
library MerkleProofUpgradeable {
2121
/**

0 commit comments

Comments
 (0)