reth_node_core::rpc::compat::transaction

Function from_legacy_primitive_signature

pub fn from_legacy_primitive_signature(
    signature: Signature,
    chain_id: Option<u64>,
) -> Signature
Expand description

Creates a new rpc signature from a legacy primitive signature, using the give chain id to compute the signature’s recovery id.

If the chain id is Some, the recovery id is computed according to EIP-155.