35 releases (17 breaking)

Uses new Rust 2024

new 0.19.1 Nov 6, 2025
0.18.3 Oct 27, 2025
0.16.4 Jul 25, 2025
0.13.1 Mar 22, 2025
0.2.0 Nov 24, 2022

#477 in Magic Beans

Download history 2770/week @ 2025-07-17 1632/week @ 2025-07-24 1438/week @ 2025-07-31 1825/week @ 2025-08-07 1068/week @ 2025-08-14 1090/week @ 2025-08-21 1375/week @ 2025-08-28 1485/week @ 2025-09-04 2243/week @ 2025-09-11 1693/week @ 2025-09-18 2739/week @ 2025-09-25 1989/week @ 2025-10-02 1452/week @ 2025-10-09 1690/week @ 2025-10-16 1606/week @ 2025-10-23 2335/week @ 2025-10-30

7,395 downloads per month
Used in 50 crates (4 directly)

MIT/Apache

3MB
52K 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 dual-licensed under the MIT and Apache 2.0 licenses.

Dependencies

~25–51MB
~1M SLoC