aboutsummaryrefslogtreecommitdiff
path: root/zkvms/nexus/guest/src
diff options
context:
space:
mode:
authorKamen Mladenov <kamen@syndamia.com>2025-01-17 18:50:07 +0200
committerKamen Mladenov <kamen@syndamia.com>2025-01-17 18:50:07 +0200
commit1bb44c826b745daad6ccbb48f2e91550a9c4ec00 (patch)
treeb27dfb1fbd46ac6bc17f1bf2bc4bc9c3cfdd8155 /zkvms/nexus/guest/src
parent3f532203df67bfc0839416962ac9c012b127105d (diff)
downloadzkVMs-benchmarks-1bb44c826b745daad6ccbb48f2e91550a9c4ec00.tar
zkVMs-benchmarks-1bb44c826b745daad6ccbb48f2e91550a9c4ec00.tar.gz
zkVMs-benchmarks-1bb44c826b745daad6ccbb48f2e91550a9c4ec00.zip
feat(zkvms): Add nexus guest and it's macro
Diffstat (limited to 'zkvms/nexus/guest/src')
-rw-r--r--zkvms/nexus/guest/src/main.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/zkvms/nexus/guest/src/main.rs b/zkvms/nexus/guest/src/main.rs
new file mode 100644
index 0000000..eb82cde
--- /dev/null
+++ b/zkvms/nexus/guest/src/main.rs
@@ -0,0 +1,17 @@
+#![cfg_attr(target_arch = "riscv32", no_std, no_main, allow(unused_imports))]
+
+use nexus_rt::{ postcard, println, read_private_input, write_output };
+
+extern crate alloc;
+use alloc::vec::Vec;
+use wrapper_macro::make_wrapper;
+
+type Input = (Vec<Vec<bool>>, u32, Vec<Vec<u32>>);
+type Output = bool;
+
+const VERTICES: usize = 100;
+
+#[nexus_rt::main]
+fn main() {
+ zkp::entrypoint_expr!()
+}