Expand description
Type definitions for the events emitted by the crate::Executor during execution.
Structs§
- AUIPC
Event - AUIPC Instruction Event.
- AluEvent
- Alu Instruction Event.
- Branch
Event - Branch Instruction Event.
- Byte
Lookup Event - Byte Lookup Event.
- CpuEvent
- CPU Event.
- EdDecompress
Event - Edwards Decompress Event.
- Elliptic
Curve AddEvent - Elliptic Curve Add Event.
- Elliptic
Curve Decompress Event - Elliptic Curve Point Decompress Event.
- Elliptic
Curve Double Event - Elliptic Curve Double Event.
- Fp2Add
SubEvent - Emulated Degree 2 Field Addition/Subtraction Events.
- Fp2Mul
Event - Emulated Degree 2 Field Multiplication Events.
- FpOp
Event - Emulated Field Operation Events.
- Global
Interaction Event - Global Interaction Event.
- Jump
Event - Jump Instruction Event.
- Keccak
Permute Event - Keccak-256 Permutation Event.
- MemInstr
Event - Memory Instruction Event.
- Memory
Initialize Finalize Event - Memory Initialize/Finalize Event.
- Memory
Local Event - Memory Local Event.
- Memory
Read Record - Memory Read Record.
- Memory
Record - Memory Record.
- Memory
Write Record - Memory Write Record.
- Precompile
Event Iter - An iterator over the variants of PrecompileEvent
- Precompile
Events - A record of all the precompile events.
- ShaCompress
Event - SHA-256 Compress Event.
- ShaExtend
Event - SHA-256 Extend Event.
- Syscall
Event - Syscall Event.
- U256x
U2048 MulEvent U256xU2048Mul Event.- Uint256
MulEvent - Uint256 Mul Event.
Enums§
- Field
Operation - This is an arithmetic operation for emulating modular arithmetic.
- Memory
Access Position - Memory Access Position.
- Memory
Record Enum - Memory Record Enum.
- Precompile
Event - 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§
- Byte
Record - A type that can record byte lookup events.
- Precompile
Local Memory - 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
Nis the number of u32 words in the point representation. For example, for the secp256k1 curve,Nwould 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):