#miden #language #package #export #hash #byte

no-std miden-mast-package

Package containing a compiled Miden MAST artifact with declared dependencies and exports

3 unstable releases

Uses new Rust 2024

new 0.14.0 May 8, 2025
0.13.2 Apr 2, 2025
0.13.0 Mar 21, 2025

#477 in Programming languages

Download history 120/week @ 2025-03-19 29/week @ 2025-03-26 169/week @ 2025-04-02 10/week @ 2025-04-09 8/week @ 2025-04-16 97/week @ 2025-04-23 53/week @ 2025-04-30

175 downloads per month
Used in 18 crates (6 directly)

MIT license

25KB
436 lines

The [Package] containing a vm_core::Program or assembly::Library and a manifest(exports and dependencies).


Overview

The miden-mast-package crate provides the Package type, which represents a Miden package. It contains a compiled Library/Program along with their exported functions and dependencies.

Binary Format

The header contains the following fields:

  • "MASP" magic bytes (4 bytes);
  • Version of the package binary format (3 bytes, e.g. "0.0.0");

The package data contains:

  • Package name
  • MAST artifact, which is either:
    • A Program (indicated by "PRG" magic bytes)
    • A Library (indicated by "LIB" magic bytes)
  • Package manifest containing:
    • List of exports, where each export has:
      • Name
      • Digest
    • List of dependencies, where each dependency has:
      • Name
      • Digest
  • Account component metadata bytes (optional)

License

This project is MIT licensed.

Dependencies

~12–38MB
~570K SLoC