Transaction Hashes: EVM and Cosmos Formats

  1. EVM Transaction Hash

    • The EVM transaction hash is computed from the Ethereum-style transaction data, typically encoded using the RLP (Recursive Length Prefix) format.

    • This hash is generated using the Keccak-256 algorithm, which is standard in the Ethereum ecosystem.

    • It uniquely identifies the transaction within the EVM layer and ensures interoperability with Ethereum-compatible tools and platforms.

  2. Cosmos Transaction Hash

    • Once the EVM transaction is encapsulated within a Cosmos SDK message (e.g., MsgEthereumTx), it is assigned a new hash using the Cosmos SDK framework.

    • The Cosmos transaction hash is derived from the serialized byte stream of the entire message, calculated using the SHA-256 algorithm.

    • This hash represents the transaction within the Cosmos ecosystem, ensuring compatibility with Tendermint consensus and other Cosmos-native functionalities.

Last updated