Use keccak256 instead of sha3

This commit is contained in:
chriseth 2017-07-28 16:57:34 +02:00 committed by GitHub
parent 2cdb5c9e83
commit 6dba8cf0f4

View File

@ -8268,7 +8268,7 @@ BOOST_AUTO_TEST_CASE(failing_ecrecover_invalid_input_proper)
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s, uint blockExpired, bytes32 salt)
returns (address)
{
require(hash == sha3(blockExpired, salt));
require(hash == keccak256(blockExpired, salt));
return ecrecover(hash, v, r, s);
}
}