Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
rink1969 committed Feb 26, 2024
1 parent 6722ea1 commit 9a25d51
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[package]
name = "crypto"
version = "6.7.2"
version = "6.7.3"
authors = ["Rivtower Technologies <[email protected]>"]
license = "Apache-2.0"
edition = "2021"

[dependencies]
clap = { version = "4.4", features = ["derive"] }
tonic = "0.10"
clap = { version = "4.5", features = ["derive"] }
tonic = "0.11"
prost = "0.12"
tokio = { version = "1.32", features = ["full"] }
tokio = { version = "1.36", features = ["full"] }
hex = "0.4"
tower = "0.4"
libsm = "0.5"
libsm = "0.6"
efficient-sm2 = "0.2"
rayon = "1.8"
serde = "1.0"
Expand Down
8 changes: 4 additions & 4 deletions src/sm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub fn recover_signature(msg: &[u8], signature: &[u8]) -> Result<Vec<u8>, Status
pub fn crypto_check_batch(raw_txs: &RawTransactions) -> StatusCodeEnum {
use rayon::prelude::*;

match raw_txs
let ret = raw_txs
.body
.par_iter()
.map(|raw_tx| {
Expand All @@ -126,8 +126,8 @@ pub fn crypto_check_batch(raw_txs: &RawTransactions) -> StatusCodeEnum {
})?;
Ok(())
})
.collect::<Result<(), StatusCodeEnum>>()
{
.collect::<Result<(), StatusCodeEnum>>();
match ret {
Ok(()) => StatusCodeEnum::Success,
Err(status) => status,
}
Expand Down Expand Up @@ -190,7 +190,7 @@ pub fn crypto_check(raw_tx: &RawTransaction) -> Result<(), StatusCodeEnum> {
let tx_hash = &utxo_tx.transaction_hash;
verify_data_hash(&tx_bytes, tx_hash)?;

for (_i, w) in witnesses.iter().enumerate() {
for w in witnesses {
let signature = &w.signature;
let sender = &w.sender;

Expand Down

0 comments on commit 9a25d51

Please sign in to comment.