pub fn payload_id_optimism(
parent: &FixedBytes<32>,
attributes: &OpPayloadAttributes,
payload_version: u8,
) -> PayloadIdExpand 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.
Note: This must be updated whenever the OpPayloadAttributes changes for a hardfork.
See also https://github.com/ethereum-optimism/op-geth/blob/d401af16f2dd94b010a72eaef10e07ac10b31931/miner/payload_building.go#L59-L59