Skip to content

Commit

Permalink
Update chia-bls and switch to chia-sha2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Nov 15, 2024
1 parent 9659343 commit f84d67c
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 161 deletions.
142 changes: 58 additions & 84 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ counters = []
pre-eval = []

# On UNIX-based platforms, you may get a speed boost on `sha256` operations by building
# with OpenSSL.when enabled
openssl = ["dep:openssl"]
# with OpenSSL when enabled
openssl = ["chia-sha2/openssl"]

[profile.release]
lto = "thin"
Expand All @@ -39,9 +39,8 @@ lazy_static = "1.5.0"
num-bigint = "0.4.6"
num-traits = "0.2.19"
num-integer = "0.1.46"
chia-bls = "0.10.0"
sha2 = "0.10.8"
openssl = "0.10.68"
chia-bls = "0.15.0"
chia-sha2 = "0.15.0"
hex-literal = "0.4.1"
# for secp sigs
k256 = "0.13.4"
Expand Down Expand Up @@ -69,8 +68,7 @@ num-bigint = { workspace = true }
num-traits = { workspace = true }
num-integer = { workspace = true }
chia-bls = { workspace = true }
sha2 = { workspace = true }
openssl = { workspace = true, features = ["vendored"], optional = true }
chia-sha2 = { workspace = true }
hex-literal = { workspace = true }
# for secp sigs
k256 = { version = "0.13.4", features = ["ecdsa"] }
Expand Down
2 changes: 1 addition & 1 deletion benches/sha256_hash.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use criterion::{criterion_group, criterion_main, Criterion};

use clvmr::sha2::Sha256;
use chia_sha2::Sha256;

const BYTE_LENGTHS: [u8; 6] = [8, 16, 32, 64, 96, 128];
const MAX_VAL: u8 = 250;
Expand Down
Loading

0 comments on commit f84d67c

Please sign in to comment.