diff --git a/Cargo.lock b/Cargo.lock index 4e816ab..27df307 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -31,10 +31,12 @@ checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" [[package]] name = "ark-crypto-primitives" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3a13b34da09176a8baba701233fdffbaa7c1b1192ce031a3da4e55ce1f1a56" +checksum = "1e0c292754729c8a190e50414fd1a37093c786c709899f29c9f7daccecfa855e" dependencies = [ + "ahash", + "ark-crypto-primitives-macros", "ark-ec", "ark-ff", "ark-relations", @@ -44,13 +46,27 @@ dependencies = [ "blake2", "derivative", "digest", + "fnv", + "merlin", "sha2", ] +[[package]] +name = "ark-crypto-primitives-macros" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e89fe77d1f0f4fe5b96dfc940923d88d17b6a773808124f21e764dfb063c6a" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.79", +] + [[package]] name = "ark-ec" -version = "0.4.2" -source = "git+https://github.com/arkworks-rs/algebra/#5a781ae69c373e46c8d738d147a764a8ee510865" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43d68f2d516162846c1238e755a7c4d131b892b70cc70c471a8e3ca3ed818fce" dependencies = [ "ahash", "ark-ff", @@ -59,7 +75,7 @@ dependencies = [ "ark-std", "educe", "fnv", - "hashbrown", + "hashbrown 0.15.0", "itertools", "num-bigint", "num-integer", @@ -69,8 +85,9 @@ dependencies = [ [[package]] name = "ark-ff" -version = "0.4.2" -source = "git+https://github.com/arkworks-rs/algebra/#5a781ae69c373e46c8d738d147a764a8ee510865" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a177aba0ed1e0fbb62aa9f6d0502e9b46dad8c2eab04c14258a1212d2557ea70" dependencies = [ "ark-ff-asm", "ark-ff-macros", @@ -88,8 +105,9 @@ dependencies = [ [[package]] name = "ark-ff-asm" -version = "0.4.2" -source = "git+https://github.com/arkworks-rs/algebra/#5a781ae69c373e46c8d738d147a764a8ee510865" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62945a2f7e6de02a31fe400aa489f0e0f5b2502e69f95f853adb82a96c7a6b60" dependencies = [ "quote", "syn 2.0.79", @@ -97,8 +115,9 @@ dependencies = [ [[package]] name = "ark-ff-macros" -version = "0.4.2" -source = "git+https://github.com/arkworks-rs/algebra/#5a781ae69c373e46c8d738d147a764a8ee510865" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09be120733ee33f7693ceaa202ca41accd5653b779563608f1234f78ae07c4b3" dependencies = [ "num-bigint", "num-traits", @@ -109,8 +128,9 @@ dependencies = [ [[package]] name = "ark-poly" -version = "0.4.2" -source = "git+https://github.com/arkworks-rs/algebra/#5a781ae69c373e46c8d738d147a764a8ee510865" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "579305839da207f02b89cd1679e50e67b4331e2f9294a57693e5051b7703fe27" dependencies = [ "ahash", "ark-ff", @@ -118,14 +138,14 @@ dependencies = [ "ark-std", "educe", "fnv", - "hashbrown", + "hashbrown 0.15.0", ] [[package]] name = "ark-relations" -version = "0.4.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00796b6efc05a3f48225e59cb6a2cda78881e7c390872d5786aaf112f31fb4f0" +checksum = "ec46ddc93e7af44bcab5230937635b06fb5744464dd6a7e7b083e80ebd274384" dependencies = [ "ark-ff", "ark-std", @@ -135,8 +155,9 @@ dependencies = [ [[package]] name = "ark-serialize" -version = "0.4.2" -source = "git+https://github.com/arkworks-rs/algebra/#5a781ae69c373e46c8d738d147a764a8ee510865" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f4d068aaf107ebcd7dfb52bc748f8030e0fc930ac8e360146ca54c1203088f7" dependencies = [ "ark-serialize-derive", "ark-std", @@ -147,8 +168,9 @@ dependencies = [ [[package]] name = "ark-serialize-derive" -version = "0.4.2" -source = "git+https://github.com/arkworks-rs/algebra/#5a781ae69c373e46c8d738d147a764a8ee510865" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "213888f660fddcca0d257e88e54ac05bca01885f258ccdf695bafd77031bb69d" dependencies = [ "proc-macro2", "quote", @@ -157,9 +179,9 @@ dependencies = [ [[package]] name = "ark-snark" -version = "0.4.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84d3cc6833a335bb8a600241889ead68ee89a3cf8448081fb7694c0fe503da63" +checksum = "d368e2848c2d4c129ce7679a7d0d2d612b6a274d3ea6a13bad4445d61b381b88" dependencies = [ "ark-ff", "ark-relations", @@ -169,8 +191,9 @@ dependencies = [ [[package]] name = "ark-std" -version = "0.4.0" -source = "git+https://github.com/arkworks-rs/std/#e18cd56e7e31458d481ac6373b6ec3e07abf5878" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "246a225cc6131e9ee4f24619af0f19d67761fff15d7ccc22e42b80846e69449a" dependencies = [ "num-traits", "rand", @@ -206,6 +229,12 @@ dependencies = [ "generic-array", ] +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + [[package]] name = "cfg-if" version = "1.0.0" @@ -466,6 +495,12 @@ name = "hashbrown" version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "hashbrown" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb" dependencies = [ "allocator-api2", ] @@ -483,7 +518,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5" dependencies = [ "equivalent", - "hashbrown", + "hashbrown 0.14.5", ] [[package]] @@ -504,6 +539,15 @@ dependencies = [ "either", ] +[[package]] +name = "keccak" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc2af9a1119c51f12a14607e783cb977bde58bc069ff0c3da1095e635d70654" +dependencies = [ + "cpufeatures", +] + [[package]] name = "libc" version = "0.2.155" @@ -516,6 +560,18 @@ version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" +[[package]] +name = "merlin" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" +dependencies = [ + "byteorder", + "keccak", + "rand_core", + "zeroize", +] + [[package]] name = "num-bigint" version = "0.4.6" diff --git a/Cargo.toml b/Cargo.toml index e24c968..efee8be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ edition ="2021" license ="Apache2.0 OR MIT" name ="ronkathon" repository ="https://github.com/pluto/ronkathon" -version = "0.1.0" +version ="0.1.0" exclude =["CHANGELOG.md"] [dependencies] @@ -17,18 +17,11 @@ hex ="0.4.3" rstest ="0.23.0" pretty_assertions ="1.4.1" sha2 ="0.10.8" -ark-ff ={ version="^0.4.0", features=["std"] } -ark-crypto-primitives={ version="0.4.0", features=["sponge"] } +ark-ff ={ version="0.5", features=["std"] } +ark-crypto-primitives={ version="0.5", features=["sponge"] } des ="0.8.1" chacha20 ="0.9.1" -[patch.crates-io] -ark-ff ={ git="https://github.com/arkworks-rs/algebra/" } -ark-ec ={ git="https://github.com/arkworks-rs/algebra/" } -ark-poly ={ git="https://github.com/arkworks-rs/algebra/" } -ark-serialize={ git="https://github.com/arkworks-rs/algebra/" } -ark-std ={ git="https://github.com/arkworks-rs/std/" } - [[bin]] name="hmac_sha256_bin" path="src/hmac/bin/hmac_sha256_bin.rs"