miden-mast-package

Crates.iomiden-mast-package
lib.rsmiden-mast-package
version0.18.0
created_at2025-03-21 01:19:50.634377+00
updated_at2025-09-21 22:56:53.044036+00
descriptionPackage containing a compiled Miden MAST artifact with declared dependencies and exports
homepagehttps://miden.xyz
repositoryhttps://github.com/0xMiden/miden-vm
max_upload_size
id1599968
size98,796
Bobbin Threadbare (bobbinth)

documentation

https://docs.rs/miden-mast-package

README

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

Commit count: 3123

cargo fmt