This crate contains cryptographic primitives used in Polygon Miden.
Hash module provides a set of cryptographic hash functions which are used by Miden VM and Miden Rollup. Currently, these functions are:
Merkle module provides a set of data structures related to Merkle tree. All these data structures are implemented using RPO hash function described above. The data structure are:
MerkleTree
: a regular fully-balanced binary Merkle tree. The depth of this tree can be at most 64.MerklePathSet
: a collection of Merkle authentication paths all resolving to the same root. The length of the paths can be at most 64.This carate can be compiled with the following features:
std
- enabled by default and relies on the Rust standard library.no_std
does not rely on the Rust standard library and enables compilation to WebAssembly.Both of these features imply use of alloc to support heap-allocated collections.
To compile with no_std
, disable default features via --no-default-features
flag.
This project is MIT licensed.