Skip to content

openvm-org/openvm-example-fibonacci

Repository files navigation

OpenVM Example Program

This repo demonstrates two simple OpenVM program along with some handy utilities for working with OpenVM programs.

It contains four 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.
  • polynomial_sha256: an example demonstrating polynomial evaluation with modular arithmetic and SHA256 hashing, showcasing multiple VM extensions.
  • openvm-example-utils: a set utility functions to generate OpenVM program inputs in the right format. Since the Fibonacci program takes a u64 as input, you can use the generate_input_from_u64 function to generate the input.

About

A basic starter program for OpenVM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8

Languages