Before I send ethers to a contract (such as the very funny Pyramid
), I want to know what it does. I read the source code (for Pyramid, it is here
) but how can I be sure it matches the bytecode in the blockchain?
I've not yet found a paper on this issue. The only solution I see is to get the EVM code (for Pyramid
) and either audit it, or compile the source and compare the outputs (not easy since a different version of the compiler may produce a different bytecode).