diff --git a/Cargo.lock b/Cargo.lock index 3c0f483..c93abeb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1088,6 +1088,15 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "keccak" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc2af9a1119c51f12a14607e783cb977bde58bc069ff0c3da1095e635d70654" +dependencies = [ + "cpufeatures", +] + [[package]] name = "lazy_static" version = "1.5.0" @@ -1687,6 +1696,7 @@ dependencies = [ [[package]] name = "qpow-math" version = "0.1.0" +source = "git+https://github.com/Quantus-Network/chain.git#ac516684d7340f5fad68eb12633d683a03591838" dependencies = [ "hex", "log", @@ -1694,6 +1704,8 @@ dependencies = [ "num-traits 0.2.19", "primitive-types", "qp-poseidon-core", + "sha2", + "sha3", ] [[package]] @@ -2026,6 +2038,27 @@ dependencies = [ "digest", ] +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "sha3" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" +dependencies = [ + "digest", + "keccak", +] + [[package]] name = "shlex" version = "1.3.0" diff --git a/Cargo.toml b/Cargo.toml index 379c094..25eb8da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ num-traits = "0.2" num_cpus = "1.16" primitive-types = { version = "0.13.1", default-features = false } qp-poseidon-core = { version = "0.9.5", default-features = false } -qpow-math = { version = "0.1.0", default-features = false } +qpow-math = { git = "https://github.com/Quantus-Network/chain.git", package = "qpow-math", default-features = false } quantus-miner-api = { version = "0.0.3", default-features = false } rand = { version = "0.8.5", default-features = false } serde = { version = "1.0", features = ["derive"] } diff --git a/crates/pow-core/Cargo.toml b/crates/pow-core/Cargo.toml index be62289..d791903 100644 --- a/crates/pow-core/Cargo.toml +++ b/crates/pow-core/Cargo.toml @@ -39,7 +39,7 @@ primitive-types = { workspace = true } num-bigint = { workspace = true } num-traits = { workspace = true } qp-poseidon-core = { workspace = true } -qpow-math = { path = "../../../chain/qpow-math", default-features = false } +qpow-math = { workspace = true } thiserror = { workspace = true } anyhow = { workspace = true }