15 releases (9 breaking)

new 0.11.0 Nov 5, 2024
0.9.2 May 22, 2024
0.8.0 Feb 27, 2024
0.6.0 Oct 11, 2023
0.2.0 Nov 24, 2022

#6 in #program

Download history 1317/week @ 2024-07-15 1738/week @ 2024-07-22 2682/week @ 2024-07-29 2018/week @ 2024-08-05 1693/week @ 2024-08-12 1970/week @ 2024-08-19 1664/week @ 2024-08-26 846/week @ 2024-09-02 1368/week @ 2024-09-09 1662/week @ 2024-09-16 1249/week @ 2024-09-23 1010/week @ 2024-09-30 885/week @ 2024-10-07 926/week @ 2024-10-14 894/week @ 2024-10-21 179/week @ 2024-10-28

3,130 downloads per month
Used in 23 crates (7 directly)

MIT license

1MB
19K 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

~11–39MB
~596K SLoC