#miden #program #stdlib

miden-stdlib

Miden VM standard library

1 unstable release

Uses new Rust 2021

0.1.0 Aug 8, 2022

#762 in Cryptography

Download history 31/week @ 2022-08-06 12/week @ 2022-08-13 10/week @ 2022-08-20 9/week @ 2022-08-27 18/week @ 2022-09-03 15/week @ 2022-09-10 14/week @ 2022-09-17 22/week @ 2022-09-24

69 downloads per month
Used in 4 crates (via miden-assembly)

MIT license

415KB
15K SLoC

Miden stdlib

Standard library for Miden VM.

Miden standard library provides a set of procedures which can be used by any Miden program. These procedures build on the core instruction set of Miden assembly expanding the functionality immediately available to the user.

The goals of Miden standard library are:

  • Provide highly-optimized and battle-tested implementations of commonly-used primitives.
  • Reduce the amount of code that needs to be shared between parties for proving and verifying program execution.

The second goal can be achieved because calls to procedures in the standard library can always be serialized as 32 bytes, regardless of how large the procedure is.

Available modules

Currently, Miden standard library contains just a few modules, which are listed below. Over time, we plan to add many more modules which will include various cryptographic primitives, additional numeric data types and operations, and many others.

Status

At this point, all implementations listed above are considered to be experimental and are subject to change.

License

This project is MIT licensed.

Dependencies

~3MB
~54K SLoC