I'm trying to implement a signature in a Solidity contract and I'm having problems when it comes to comparing hashes. I calculate the hash with the following code in solidity:
sha256(abi.encodePacked(param1, ...., paramN);
Where:
abi.encodePacked(param1, ..., paramN) = [bytes: 0x0102030405060701]
and
sha255(abi.encodePacked(param1, ..., paramN)) = [bytes32:
0x245138c905599c8579ab186fbdbd6e62396aac35a98a6568f8803eed049d1251]
The main problem I'm having is that by using python sha256 on 0102030405060701 the result I'm getting is 5bc31e3decf480124c79c114744d111ec82b62e466a097c3ced6fe76cbace9a5.
What am I doing wrong?