@ -1,4 +1,20 @@ |
|||||
[workspace] |
|
||||
members = [ |
|
||||
"crypto" |
|
||||
] |
|
||||
|
[package] |
||||
|
name = "miden-crypto" |
||||
|
version = "0.1.0" |
||||
|
description="Miden Cryptographic primitives" |
||||
|
authors = ["miden contributors"] |
||||
|
readme="README.md" |
||||
|
license = "MIT" |
||||
|
repository = "https://github.com/0xPolygonMiden/crypto" |
||||
|
categories = ["cryptography", "no-std"] |
||||
|
keywords = ["miden", "crypto", "hash", "merkle"] |
||||
|
edition = "2021" |
||||
|
|
||||
|
[dependencies] |
||||
|
winter_crypto = { version = "0.4.1", package = "winter-crypto" } |
||||
|
winter_math = { version = "0.4.1", package = "winter-math" } |
||||
|
winter_utils = { version = "0.4.1", package = "winter-utils" } |
||||
|
|
||||
|
[dev-dependencies] |
||||
|
proptest = "1.0.0" |
||||
|
rand_utils = { version = "0.4", package = "winter-rand-utils" } |
@ -1,20 +0,0 @@ |
|||||
[package] |
|
||||
name = "crypto" |
|
||||
version = "0.1.0" |
|
||||
description="Miden Cryptographic primitives" |
|
||||
authors = ["miden contributors"] |
|
||||
readme="README.md" |
|
||||
license = "MIT" |
|
||||
repository = "https://github.com/0xPolygonMiden/crypto" |
|
||||
categories = ["cryptography", "no-std"] |
|
||||
keywords = ["miden", "crypto", "hash", "merkle"] |
|
||||
edition = "2021" |
|
||||
|
|
||||
[dependencies] |
|
||||
winter_utils = { version = "0.4.1", package = "winter-utils" } |
|
||||
winter_math = { version = "0.4.1", package = "winter-math" } |
|
||||
winter_crypto = { version = "0.4.1", package = "winter-crypto" } |
|
||||
|
|
||||
[dev-dependencies] |
|
||||
proptest = "1.0.0" |
|
||||
rand_utils = { version = "0.4", package = "winter-rand-utils" } |
|
@ -1,6 +1,8 @@ |
|||||
use super::DIGEST_SIZE;
|
use super::DIGEST_SIZE;
|
||||
use crate::{ByteReader, ByteWriter, Deserializable, DeserializationError, Serializable};
|
|
||||
use crate::{Digest, Felt, StarkField, ZERO};
|
|
||||
|
use crate::{
|
||||
|
ByteReader, ByteWriter, Deserializable, DeserializationError, Digest, Felt, Serializable,
|
||||
|
StarkField, ZERO,
|
||||
|
};
|
||||
use core::ops::Deref;
|
use core::ops::Deref;
|
||||
|
|
||||
// DIGEST TRAIT IMPLEMENTATIONS
|
// DIGEST TRAIT IMPLEMENTATIONS
|