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