mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-10 01:33:07 +00:00
17 lines
367 B
Rust
17 lines
367 B
Rust
#[derive(Default)]
|
|
pub struct TransactionMemory {
|
|
pub calls: Vec<ContractMemory>,
|
|
}
|
|
|
|
/// A virtual memory space specific to the current contract call.
|
|
pub struct ContractMemory {
|
|
pub code: MemorySegment,
|
|
pub main: MemorySegment,
|
|
pub calldata: MemorySegment,
|
|
pub returndata: MemorySegment,
|
|
}
|
|
|
|
pub struct MemorySegment {
|
|
pub content: Vec<u8>,
|
|
}
|