Skip to content

Commit

Permalink
adding comments on hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
matYang committed Sep 19, 2023
1 parent 48fa9f8 commit 4dad36f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/src/v0.8/ccip/libraries/Internal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ library Internal {
bytes32 internal constant EVM_2_EVM_MESSAGE_HASH = keccak256("EVM2EVMMessageHash");

function _hash(EVM2EVMMessage memory original, bytes32 metadataHash) internal pure returns (bytes32) {
// Fixed-size message fields are included in nested hash to reduce stack pressure.
// This hashing scheme is also used by RMN. If changing it, please notify RMN.
return
keccak256(
abi.encode(
Expand Down

0 comments on commit 4dad36f

Please sign in to comment.