pragma solidity ^0.4.24; contract A { // bytes32 hash signed by the event owner or primary bytes hash1 = hex"5569044719a1ec3b04d0afa9e7a5310c7c0473331d13dc9fafe143b2c4e8148a"; bytes hash2 = hex"771f84733c67f7f843d0ec2564a32a39f757f974e0fff5f64413a1422d525342"; // packed bytes bytes public packed = abi.encodePacked(hash1, hash2); // hashed packed bytes bytes32 public result = keccak256(packed); // expected result = 0x1588ecd2699155465371480db07fbf82792736fdd35ee362c974e62d3812992d }
0.4.24