#miden #merkle #hash

no-std miden-serde-utils

Serialization/deserialization utilities for Miden

10 releases

Uses new Rust 2024

0.22.2 Feb 2, 2026
0.22.1 Feb 1, 2026
0.22.0 Jan 28, 2026
0.21.4 Jan 23, 2026
0.20.1 Dec 29, 2025

#101 in No standard library

Download history 242/week @ 2025-12-25 968/week @ 2026-01-01 370/week @ 2026-01-08 580/week @ 2026-01-15 775/week @ 2026-01-22 900/week @ 2026-01-29 908/week @ 2026-02-05 1161/week @ 2026-02-12

3,888 downloads per month
Used in 14 crates (via miden-crypto)

MIT/Apache

82KB
1.5K SLoC

Miden Serialization Utilities

This crate provides serialization and deserialization utilities for Miden projects.

Features

  • ByteReader trait for reading primitive values from byte sources
  • ByteWriter trait for writing primitive values to byte sinks
  • Serializable and Deserializable traits for custom types
  • Support for both std and no_std environments

Crate Features

  • std - enabled by default; enables standard library support
  • winter-compat - provides Serializable and Deserializable implementations for types from the winter-math and winter-utils crates (specifically for Felt field elements). This feature exists to work around Rust's orphan rule, which prevents implementing external traits on external types. By implementing these traits in this intermediate crate, both Miden and Winter ecosystem crates can use a common serialization interface

License

Any contribution intentionally submitted for inclusion in this repository, as defined in the Apache-2.0 license, shall be dual licensed under the MIT and Apache 2.0 licenses, without any additional terms or conditions.

Dependencies

~8–11MB
~117K SLoC