arnaucube
arnaucube/miden-cryptoPublic Self-hosted repository
miden-crypto/src/lib.rs
src/lib.rsRaw
 1pub use winter_crypto::{Digest, ElementHasher, Hasher as HashFn};
 2pub use winter_math::{
 3    fields::{f64::BaseElement as Felt, QuadExtension},
 4    log2, ExtensionOf, FieldElement, StarkField,
 5};
 6pub use winter_utils::{
 7    collections::{BTreeMap, Vec},
 8    uninit_vector, ByteReader, ByteWriter, Deserializable, DeserializationError, Serializable,
 9    SliceReader,
10};
11
12pub mod hash;
13pub mod merkle;
14
15// TYPE ALIASES
16// ================================================================================================
17
18pub type Word = [Felt; 4];
19
20// CONSTANTS
21// ================================================================================================
22
23/// Field element representing ZERO in the base field of the VM.
24pub const ZERO: Felt = Felt::ZERO;
25
26/// Field element representing ONE in the base field of the VM.
27pub const ONE: Felt = Felt::ONE;