Expand description
Type definitions for the events emitted by the crate::Executor during execution.
Structs§
- Arithmetic Logic Unit (ALU) Event.
- Byte Lookup Event.
- CPU Event.
- Edwards Decompress Event.
- Elliptic Curve Add Event.
- Elliptic Curve Point Decompress Event.
- Elliptic Curve Double Event.
- Emulated Degree 2 Field Addition/Subtraction Events.
- Emulated Degree 2 Field Multiplication Events.
- Emulated Field Operation Events.
- Keccak-256 Permutation Event.
- A unique identifier for lookups.
- Memory Initialize/Finalize Event.
- Memory Local Event.
- Memory Read Record.
- Memory Record.
- Memory Write Record.
- An iterator over the variants of PrecompileEvent
- A record of all the precompile events.
- SHA-256 Compress Event.
- SHA-256 Extend Event.
- Syscall Event.
- Uint256 Mul Event.
Enums§
- This is an arithmetic operation for emulating modular arithmetic.
- Memory Access Position.
- Memory Record Enum.
- Precompile event. There should be one variant for every precompile syscall.
Constants§
- The number of different byte operations.
Traits§
- A type that can record byte lookup events.
- Trait to retrieve all the local memory events from a vec of precompile events.
Functions§
- Creates a new ALU lookup id with
LookupId - Creates a new ALU lookup id with
LookupId - 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 an elliptic curve decompress event.
- Create an elliptic curve double event.
- Returns sorted and formatted rows of a table of counts (e.g.
opcode_counts).