getRootForMergedRange
Utility for calculating the root of a compact range provided in a gas-convenient representation.
function getRootForMergedRange(bytes32[] calldata leftRange, bytes32 seed, bytes32[] calldata rightRange)
pure
returns (bytes32 root);
Parameters
| Name | Type | Description |
|---|---|---|
leftRange | bytes32[] | The left portion of the compact range to merge. |
seed | bytes32 | The middle portion of the compact range to merge. |
rightRange | bytes32[] | The right portion of the compact range to merge. |
Returns
| Name | Type | Description |
|---|---|---|
root | bytes32 | The calculated root of the compact range. |