Skip to main content

getRootForMergedRange

Git Source

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

NameTypeDescription
leftRangebytes32[]The left portion of the compact range to merge.
seedbytes32The middle portion of the compact range to merge.
rightRangebytes32[]The right portion of the compact range to merge.

Returns

NameTypeDescription
rootbytes32The calculated root of the compact range.