Skip to main content

unique_tx_identifier_from_signable

Function unique_tx_identifier_from_signable 

Source
pub(crate) fn unique_tx_identifier_from_signable<T>(
    tx: &T,
    sender: Address,
) -> B256
where T: SignableTransaction<Signature>,
Expand description

Computes the sender-scoped transaction identifier used for replay-sensitive features.

The identifier is keccak256(encode_for_signing || sender), making it unique per recovered sender while remaining invariant to signatures that do not change the signed payload.