Skip to content

CalculateDeprecatedTransactionHashCommon

Calculates the common transaction hash for deprecated transaction versions (V0, V1, V2) using the Pedersen hash algorithm.

Function Signature

func CalculateDeprecatedTransactionHashCommon(
    txHashPrefix *felt.Felt,
    version *felt.Felt,
    contractAddress *felt.Felt,
    entryPointSelector *felt.Felt,
    calldata *felt.Felt,
    maxFee *felt.Felt,
    chainID *felt.Felt,
    additionalData []*felt.Felt,
) *felt.Felt

Description

This internal helper function implements the deprecated (Pedersen-based) transaction hash calculation common to V0, V1, and V2 transactions. It is called by:

Note: The word "Deprecated" refers to deprecated transaction versions, not a deprecated function. V3 transactions use the newer Poseidon hash algorithm instead.

Related Functions