mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-12 10:43:07 +00:00
memory
This commit is contained in:
parent
3aaab765dd
commit
7c2cfebdee
@ -12,6 +12,7 @@ pub mod cross_table_lookup;
|
||||
mod get_challenges;
|
||||
pub mod keccak;
|
||||
pub mod logic;
|
||||
pub mod memory;
|
||||
pub mod permutation;
|
||||
pub mod proof;
|
||||
pub mod prover;
|
||||
|
||||
16
evm/src/memory/memory_stark.rs
Normal file
16
evm/src/memory/memory_stark.rs
Normal file
@ -0,0 +1,16 @@
|
||||
#[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>,
|
||||
}
|
||||
2
evm/src/memory/mod.rs
Normal file
2
evm/src/memory/mod.rs
Normal file
@ -0,0 +1,2 @@
|
||||
pub mod memory_stark;
|
||||
pub mod registers;
|
||||
3
evm/src/memory/registers.rs
Normal file
3
evm/src/memory/registers.rs
Normal file
@ -0,0 +1,3 @@
|
||||
//! Memory unit.
|
||||
|
||||
pub(super) const END: usize = super::START_MEMORY;
|
||||
Loading…
x
Reference in New Issue
Block a user