getRoot
Returns the root for a given compact range.
This method "bags the peaks" of the compact range, folding in from R2L.
function getRoot(bytes32[] calldata hashes) pure returns (bytes32 root);
Parameters
| Name | Type | Description |
|---|---|---|
hashes | bytes32[] | The hashes of the compact range to calculate the root for. |
Returns
| Name | Type | Description |
|---|---|---|
root | bytes32 | The root of the compact range. |