flâneur — a map of the web's best reading

Program the Blockchain | Understanding Ethereum Smart Contract Storage

programtheblockchain.com · 1,346 words · saved by 1 readers

Ethereum smart contracts use an uncommon storage model that often confuses new developers. In this post, I’ll describe that storage model and explain how the Solidity programming language makes use of it.

Ethereum smart contracts use an uncommon storage model that often confuses new developers. In this post, I'll describe that storage model and explain how the Solidity programming language makes use of it. One Astronomically Large Array Each smart contract running in the Ethereum Virtual Machine (EVM) maintains state in its own permanent storage. This storage can be thought of as a very large array, initially full of zeros. Each value in the array is 32-bytes wide, and there are 2 256 such values. A smart contract can read from or write to a value at any location. That's the extent of the stora

Explore this link on the map →

related reading