We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0980983 commit aea7960Copy full SHA for aea7960
adapters/native/src/host.rs
@@ -39,10 +39,15 @@ impl ZkVmExecutor for NativeHost {
39
Ok(public_values)
40
}
41
42
+ /// Returns an empty slice as there is no ELF in native mode.
43
fn get_elf(&self) -> &[u8] {
44
&[]
45
46
47
+ /// Returns 0 as cycle counting is not applicable in native mode.
48
+ ///
49
+ /// For RISC-V ZkVms, cycles are obtained by emulating execution and counting
50
+ /// instructions. There is no straightforward equivalent for native execution.
51
fn get_cycles<'a>(
52
&self,
53
_input: <Self::Input<'a> as zkaleido::ZkVmInputBuilder<'a>>::Input,
0 commit comments