mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 16:23:12 +00:00
Impl timestamp opcode for interpreter
This commit is contained in:
parent
042c004237
commit
a17c6231a7
@ -349,7 +349,7 @@ impl<'a> Interpreter<'a> {
|
|||||||
0x3f => todo!(), // "EXTCODEHASH",
|
0x3f => todo!(), // "EXTCODEHASH",
|
||||||
0x40 => todo!(), // "BLOCKHASH",
|
0x40 => todo!(), // "BLOCKHASH",
|
||||||
0x41 => todo!(), // "COINBASE",
|
0x41 => todo!(), // "COINBASE",
|
||||||
0x42 => todo!(), // "TIMESTAMP",
|
0x42 => self.run_timestamp(), // "TIMESTAMP",
|
||||||
0x43 => todo!(), // "NUMBER",
|
0x43 => todo!(), // "NUMBER",
|
||||||
0x44 => todo!(), // "DIFFICULTY",
|
0x44 => todo!(), // "DIFFICULTY",
|
||||||
0x45 => todo!(), // "GASLIMIT",
|
0x45 => todo!(), // "GASLIMIT",
|
||||||
@ -659,6 +659,10 @@ impl<'a> Interpreter<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn run_timestamp(&mut self) {
|
||||||
|
self.push(self.get_global_metadata_field(GlobalMetadata::BlockTimestamp))
|
||||||
|
}
|
||||||
|
|
||||||
fn run_prover_input(&mut self) -> anyhow::Result<()> {
|
fn run_prover_input(&mut self) -> anyhow::Result<()> {
|
||||||
let prover_input_fn = self
|
let prover_input_fn = self
|
||||||
.prover_inputs_map
|
.prover_inputs_map
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user