Constructor
new Merkle(data)
Create a Merkle tree from data
Parameters:
Name | Type | Description |
---|---|---|
data |
Array.<string> | array of hex strings representing data |
- Source:
Methods
getProof(index)
Get the proof of data at index
Parameters:
Name | Type | Description |
---|---|---|
index |
number | index ot get the proof |
- Source:
getRoot()
Get the Merkle root
- Source:
makeTree()
Make the Merkle tree
- Source: