From baa25b2e97dbd30cf5ba5d4e2c253dcb1171801b Mon Sep 17 00:00:00 2001 From: Rostyslav Tyshko Date: Sun, 10 Nov 2024 02:12:01 +0100 Subject: [PATCH] multiplication test method --- zkvm/test_methods/guest/src/bin/multiplication.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 zkvm/test_methods/guest/src/bin/multiplication.rs diff --git a/zkvm/test_methods/guest/src/bin/multiplication.rs b/zkvm/test_methods/guest/src/bin/multiplication.rs new file mode 100644 index 0000000..047ac07 --- /dev/null +++ b/zkvm/test_methods/guest/src/bin/multiplication.rs @@ -0,0 +1,9 @@ +use risc0_zkvm::{ + guest::env, +}; + +fn main() { + let lhs: u64 = env::read(); + let rhs: u64 = env::read(); + env::commit(&(lhs * rhs)); +}