Skip to main content

Crate miden_field

Crate miden_field 

Source
Expand description

A unified Felt for on-chain and off-chain Miden Rust code.

This crate provides a single Felt type that can be used in both on-chain (Wasm) and off-chain (native) Rust code:

  • When targeting the Miden VM via Wasm, Felt is backed by an on-chain felt.
  • Otherwise, Felt is backed by a felt (miden-core’s field element).

Structs§

Felt
A Felt represented as a felt (miden_core::Felt).

Enums§

FeltError
Errors returned by Felt::new.

Constants§

MODULUS
The field modulus, 2^64 - 2^32 + 1.