, Python Web3 yields:
This matches the output of
keccak256(abi.encodePacked(true)) in Solidity. However, I want the output of
keccak256(abi.encode(true)) because my contract has to deal with variably-sized data structures.
In Web3 JS, I could get the correct output (
How do I get it from Python Web3?
Of course I don't need the hash of a boolean. This just serves as an example for easy verification that the correct encoding was used.