9 releases (breaking)

new 0.9.1 Apr 4, 2024
0.8.0 Feb 27, 2024
0.6.0 Oct 11, 2023
0.5.0 Jun 29, 2023
0.2.0 Nov 24, 2022

#2268 in Magic Beans

Download history 322/week @ 2023-12-21 455/week @ 2023-12-28 606/week @ 2024-01-04 672/week @ 2024-01-11 638/week @ 2024-01-18 623/week @ 2024-01-25 460/week @ 2024-02-01 416/week @ 2024-02-08 535/week @ 2024-02-15 889/week @ 2024-02-22 1747/week @ 2024-02-29 1396/week @ 2024-03-07 1122/week @ 2024-03-14 1283/week @ 2024-03-21 1062/week @ 2024-03-28 1694/week @ 2024-04-04

5,442 downloads per month
Used in 9 crates (4 directly)

MIT license

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

~7MB
~129K SLoC