Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 92 additions & 6 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,12 @@ version = "3.19.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5dd9dc738b7a8311c7ade152424974d8115f2cdad61e8dab8dac9f2362298510"

[[package]]
name = "bytemuck"
version = "1.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec"

[[package]]
name = "byteorder"
version = "1.5.0"
Expand Down Expand Up @@ -653,6 +659,19 @@ dependencies = [
"thiserror 1.0.69",
]

[[package]]
name = "chia-vdf-verify"
version = "0.38.1"
dependencies = [
"criterion",
"hex",
"malachite-base",
"malachite-nz",
"num-bigint",
"pyo3",
"sha2",
]

[[package]]
name = "chia_py_streamable_macro"
version = "0.38.1"
Expand Down Expand Up @@ -907,7 +926,7 @@ dependencies = [
"clap",
"criterion-plot",
"is-terminal",
"itertools",
"itertools 0.10.5",
"num-traits",
"once_cell",
"oorandom",
Expand All @@ -928,7 +947,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1"
dependencies = [
"cast",
"itertools",
"itertools 0.10.5",
]

[[package]]
Expand Down Expand Up @@ -1184,6 +1203,12 @@ version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"

[[package]]
name = "foldhash"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"

[[package]]
name = "foreign-types"
version = "0.3.2"
Expand Down Expand Up @@ -1410,6 +1435,15 @@ version = "0.15.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5971ac85611da7067dbfcabef3c70ebb5606018acd9e2a3903a0da507521e0d5"

[[package]]
name = "hashbrown"
version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
dependencies = [
"foldhash",
]

[[package]]
name = "hashlink"
version = "0.9.1"
Expand Down Expand Up @@ -1652,6 +1686,15 @@ dependencies = [
"either",
]

[[package]]
name = "itertools"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
dependencies = [
"either",
]

[[package]]
name = "itoa"
version = "1.0.11"
Expand Down Expand Up @@ -1736,9 +1779,9 @@ dependencies = [

[[package]]
name = "libm"
version = "0.2.8"
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058"
checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"

[[package]]
name = "libsqlite3-sys"
Expand Down Expand Up @@ -1785,6 +1828,30 @@ version = "0.4.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"

[[package]]
name = "malachite-base"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a8b6f86fdbb1eb9955946be91775239dfcb0acdb1a51bb07d5fc9b8c854f5ccd"
dependencies = [
"hashbrown 0.16.1",
"itertools 0.14.0",
"libm",
"ryu",
]

[[package]]
name = "malachite-nz"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0197a2f5cfee19d59178e282985c6ca79a9233e26a2adcf40acb693896aa09f6"
dependencies = [
"itertools 0.14.0",
"libm",
"malachite-base",
"wide",
]

[[package]]
name = "memchr"
version = "2.7.4"
Expand Down Expand Up @@ -2519,9 +2586,18 @@ checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4"

[[package]]
name = "ryu"
version = "1.0.18"
version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"

[[package]]
name = "safe_arch"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f7caad094bd561859bcd467734a720c3c1f5d1f338995351fefe2190c45efed"
dependencies = [
"bytemuck",
]

[[package]]
name = "same-file"
Expand Down Expand Up @@ -3133,6 +3209,16 @@ dependencies = [
"wasm-bindgen",
]

[[package]]
name = "wide"
version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac11b009ebeae802ed758530b6496784ebfee7a87b9abfbcaf3bbe25b814eb25"
dependencies = [
"bytemuck",
"safe_arch",
]

[[package]]
name = "winapi"
version = "0.2.8"
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ chia-datalayer-macro = { path = "./crates/chia-datalayer/macro", version = "0.38
chia-protocol = { path = "./crates/chia-protocol", version = "0.38.1" }
chia-secp = { path = "./crates/chia-secp", version = "0.38.1" }
chia-ssl = { path = "./crates/chia-ssl", version = "0.38.1" }
chia-vdf-verify = { path = "./crates/chia-vdf-verify", version = "0.38.1" }
chia-traits = { path = "./crates/chia-traits", version = "0.38.1" }
chia-puzzle-types = { path = "./crates/chia-puzzle-types", version = "0.38.1" }
chia-sha2 = { path = "./crates/chia-sha2", version = "0.38.1" }
Expand Down
38 changes: 38 additions & 0 deletions crates/chia-vdf-verify/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[package]
name = "chia-vdf-verify"
version.workspace = true
edition = "2024"
license = "Apache-2.0"
description = "Pure-Rust Chia VDF proof verifier — no GMP, no C dependencies"
authors = ["Richard Kiss <him@richardkiss.com>"]
homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"

[lints]
workspace = true

[lib]
name = "chia_vdf_verify"
crate-type = ["rlib"]

[dependencies]
malachite-nz = "0.9"
malachite-base = "0.9"
sha2 = { workspace = true }
pyo3 = { workspace = true, features = ["extension-module"], optional = true }

[features]
python = ["pyo3"]

[dev-dependencies]
hex = { workspace = true }
criterion = { workspace = true }
num-bigint = { workspace = true }

[[bench]]
name = "verify"
harness = false

[[bench]]
name = "bigint_compare"
harness = false
Loading
Loading