3 ms·
The Ethereum virtual machine addresses it's storage with 256 bits, so there's one wild example. Although in this case you'd probably not want to use usize direc
by mgraczyk 5y ago
The Ethereum virtual machine addresses it's storage with 256 bits, so there's one wild example. Although in this case you'd probably not want to use usize directly to represent storage.
- eloff 5y agoI'm not familiar with the Ethereum virtual machine, are these really memory pointers? Surely it's represented differently?
- mgraczyk 5y agoEVM is a stack machine, and it has durable storage which is addressed using 256 bit "pointers". So you can do something like push x // 256 bit constant LOAD // top of stack now contains storage[x]