Skip to content

A basic starter program for OpenVM.

openvm-org/openvm-examples

Repository files navigation

OpenVM Examples

This repo demonstrates three simple OpenVM guest program examples along with some handy utilities for working with OpenVM programs.

It contains four crates:

Guest Crates

  • openvm-example-fibonacci: an example Fibonacci program. See the book for more details.
  • diffie-hellman-example: 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.

Utility Crates

  • 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