Function reth::primitives::constants::eip4844::load_trusted_setup_from_bytes

source ยท
pub fn load_trusted_setup_from_bytes(
    bytes: &[u8],
) -> Result<KZGSettings, LoadKzgSettingsError>
Expand description

Loads the trusted setup parameters from the given bytes and returns the KzgSettings.

This creates a temp file to store the bytes and then loads the KzgSettings from the file via KzgSettings::load_trusted_setup_file.