Skip to main content
@tevm/voltaire
@tevm/voltaire / evm / Keccak

Keccak

Functions

sha3()

sha3(frame): EvmError | null
Defined in: src/evm/keccak/0x20_SHA3.js:25 SHA3 opcode (0x20) - Compute Keccak-256 hash Pops offset and length from stack, reads data from memory, computes Keccak-256 hash, and pushes the 32-byte result. Gas cost: 30 (base) + 6 * word_count + memory expansion where word_count = ceil(length / 32)

Parameters

frame
BrandedFrame Frame instance

Returns

EvmError | null Error if any