Apologies in advance if it's a silly question. I'm slowly making my way through the ethereum yellow paper.
Am I correct in saying that the ethereum world state does not contain any EVM code? It only contains hashes of the code, right?
My train of thought is the following:
1) The world state is an aggregate key-value mapping of
address --> 4 elements
2) The 4 elements are:
3) None of those 4 elements has any code, the closest is
codeHash which contains just a hash of the code, but not the code itself
So if the world state database does not contain any contract code, where is the contract code stored? Or otherwise, which one of my statements is incorrect?