payload_id_optimism

Function payload_id_optimism 

Source
pub fn payload_id_optimism(
    parent: &FixedBytes<32>,
    attributes: &OpPayloadAttributes,
    payload_version: u8,
) -> PayloadId
Expand description

Generates the payload id for the configured payload from the OpPayloadAttributes.

Returns an 8-byte identifier by hashing the payload components with sha256 hash.