Skip to main content

hashToParent

Git Source

Hashes two bytes32s together as into a merkle parent.

function hashToParent(bytes32 left, bytes32 right) pure returns (bytes32 parent);

Parameters

NameTypeDescription
leftbytes32The left child to hash.
rightbytes32The right child to hash.

Returns

NameTypeDescription
parentbytes32The parent hash.