Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 832 Bytes

20.mdx

File metadata and controls

34 lines (23 loc) · 832 Bytes
fork group
Frontier
SHA3

Index 1 is top of the stack. See PUSH.

Stack input

  1. offset: byte offset in the memory.
  2. size: byte size to read in the memory.

Stack output

  1. hash: Keccak-256 hash of the given data in memory.

Example

Memory
0xFFFFFFFF
* Input Output
1 0 0x29045A592007D0C246EF02C2223570DA9522D0CF0F73282C79A1BC8F0BB2C238
2 4

Reproduce in playground.

Error cases

The state changes done by the current context are reverted in those cases:

  • Not enough gas.
  • Not enough values on the stack.