Skip to content

Commit

Permalink
feat: replace blake2b-rs with blake2b-ref (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
xcshuan authored Aug 2, 2024
1 parent a2f85a3 commit 68c93a3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion ckb-auth-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ lazy_static = { version = "1.4.0", optional = true, features = ["spin_no_std"] }

[target.'cfg(target_arch = "riscv64")'.dependencies]
hex = { version = "0.4.3", default-features = false, features = ["alloc"]}
blake2b-rs = "0.2.0"
blake2b-ref = "0.3.1"
2 changes: 1 addition & 1 deletion ckb-auth-rs/src/generate_sighash_all.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::CkbAuthError;
use blake2b_rs::{Blake2b, Blake2bBuilder};
use blake2b_ref::{Blake2b, Blake2bBuilder};
use ckb_std::ckb_constants::{InputField, Source};
use ckb_std::high_level::load_tx_hash;
use ckb_std::syscalls::{load_input_by_field, load_witness, SysError};
Expand Down
18 changes: 4 additions & 14 deletions tests/auth-rust-lock/Cargo.lock

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

2 changes: 1 addition & 1 deletion tests/auth-rust-lock/tests/Cargo.lock

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

0 comments on commit 68c93a3

Please sign in to comment.