This repo demonstrates two simple OpenVM program along with some handy utilities for working with OpenVM programs.
It contains three crates:
openvm-example-program
: an example Fibonacci program. See the book for more details.openvm-example-program
: an example Diffie Hellman Key Exchange program. This program takes in two inputs as Alice's and Bob's private keys and generates a shared key hashed with SHA-256.openvm-example-utils
: a set utility functions to generate OpenVM program inputs in the right format. Since the Fibonacci program takes au64
as input, you can use thegenerate_input_from_u64
function to generate the input.