-
As per title. When constructing a Merkle tree we pass in `&[LeafType]` which is then cloned and stored in the struct, never to be accessed again (it is used internally to generate proofs and multiproo…
-
Minimal repro:
```
const { MerkleTree } = require('merkletreejs');
const keccak256 = require('keccak256');
const oneLeaf = ["foo"];
const hashedOneLeaf = oneLeaf.map(data => keccak256(data));…
-
Hi, I am trying to use this library to manage a whiteList of Ethereum address.
Question, I have tried many ways, and I can not get it to work.
I had to modify a little bit the leafNodes part, be…
-
How do I link my merkle tree whitelist? When I add the mint-whitelist button and try to mint with it, it says that the address is not whitelisted. How do I link my whitelist?
-
Why merkle tree can't be from 1 node?
https://github.com/txaty/go-merkletree/blob/ccfc3d24289d9c28111edc02f688b8bef9f45fb7/merkle_tree.go#L104
Even if there's just one mode, we still can compute…
Dmdv updated
5 months ago
-
The tree itself has to be an arity-configurable and hashable. Actual requirements are fully covered with this: https://github.com/filecoin-project/rust-fil-proofs/blob/master/storage-proofs/core/src/m…
-
solidity:
```sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
import {MerkleProof} from "openzeppelin-contracts/utils/cryptography/MerkleProof.sol";
contract MerkleTreeUtil {
…
-
### Checklist
- [X] This is **not** a security-related bug/issue. If it is, please follow please follow the [security policy](https://github.com/filecoin-project/lotus/security/policy).
- [X] I **hav…
-
should be implemented in merkletree_test.go
-
- [loom Plasma Cash SMT](https://github.com/loomnetwork/plasma-cash/blob/master/server/contracts/Core/SparseMerkleTree.sol)
- [OpenZeppelin](https://github.com/OpenZeppelin/openzeppelin-solidit…