Function reth::primitives::eip4844::kzg_to_versioned_hash

pub fn kzg_to_versioned_hash(commitment: &[u8]) -> FixedBytes<32>
Available on crate feature sha2 only.
Expand description

Calculates the versioned hash for a KzgCommitment of 48 bytes.

Specified in EIP-4844

ยงPanics

If the given commitment is not 48 bytes long.