Function alloy_eips::eip4844::kzg_to_versioned_hash

source ·
pub fn kzg_to_versioned_hash(commitment: &[u8]) -> B256
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.