Module events

Module events 

Source
Expand description

Type definitions for the events emitted by the crate::Executor during execution.

Structs§

AUIPCEvent
AUIPC Instruction Event.
AluEvent
Alu Instruction Event.
BranchEvent
Branch Instruction Event.
ByteLookupEvent
Byte Lookup Event.
CpuEvent
CPU Event.
EdDecompressEvent
Edwards Decompress Event.
EllipticCurveAddEvent
Elliptic Curve Add Event.
EllipticCurveDecompressEvent
Elliptic Curve Point Decompress Event.
EllipticCurveDoubleEvent
Elliptic Curve Double Event.
Fp2AddSubEvent
Emulated Degree 2 Field Addition/Subtraction Events.
Fp2MulEvent
Emulated Degree 2 Field Multiplication Events.
FpOpEvent
Emulated Field Operation Events.
GlobalInteractionEvent
Global Interaction Event.
JumpEvent
Jump Instruction Event.
KeccakPermuteEvent
Keccak-256 Permutation Event.
MemInstrEvent
Memory Instruction Event.
MemoryInitializeFinalizeEvent
Memory Initialize/Finalize Event.
MemoryLocalEvent
Memory Local Event.
MemoryReadRecord
Memory Read Record.
MemoryRecord
Memory Record.
MemoryWriteRecord
Memory Write Record.
PrecompileEventIter
An iterator over the variants of PrecompileEvent
PrecompileEvents
A record of all the precompile events.
ShaCompressEvent
SHA-256 Compress Event.
ShaExtendEvent
SHA-256 Extend Event.
SyscallEvent
Syscall Event.
U256xU2048MulEvent
U256xU2048 Mul Event.
Uint256MulEvent
Uint256 Mul Event.

Enums§

FieldOperation
This is an arithmetic operation for emulating modular arithmetic.
MemoryAccessPosition
Memory Access Position.
MemoryRecordEnum
Memory Record Enum.
PrecompileEvent
Precompile event. There should be one variant for every precompile syscall.

Constants§

NUM_BYTE_OPS
The number of different byte operations.
NUM_LOCAL_MEMORY_ENTRIES_PER_ROW_EXEC
The number of local memory entries per row of the memory local chip.

Traits§

ByteRecord
A type that can record byte lookup events.
PrecompileLocalMemory
Trait to retrieve all the local memory events from a vec of precompile events.

Functions§

create_ec_add_event
Create an elliptic curve add event. It takes two pointers to memory locations, reads the points from memory, adds them together, and writes the result back to the first memory location. The generic parameter N is the number of u32 words in the point representation. For example, for the secp256k1 curve, N would be 16 (64 bytes) because the x and y coordinates are 32 bytes each.
create_ec_decompress_event
Create an elliptic curve decompress event.
create_ec_double_event
Create an elliptic curve double event.
format_table_line
Returns a formatted row of a table of counts (e.g. opcode_counts).
generate_execution_report
Returns sorted and formatted rows of a table of counts (e.g. opcode_counts).
sorted_table_lines
Returns a tuple containing everything needed to to correctly display a table of counts (e.g. opcode_counts):