Skip to content

Commit

Permalink
scrypto 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz2891 committed Nov 28, 2024
1 parent ea7fba4 commit 1c620db
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/crypto/keccak256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub fn keccak256(data: &[u8]) -> Keccak256Hash {
scrypto::prelude::CryptoUtils::keccak256_hash(data).0
}

#[cfg(not(target_arch = "wasm32"))]
#[cfg(feature = "helpers")]
#[cfg(test)]
mod tests {
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/recover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ pub(crate) mod crypto256 {
use crate::network::error::Error;
use radix_common::crypto::{Hash, IsHash, Secp256k1Signature};
use scrypto::crypto_utils::CryptoUtils;
use secp256k1::PublicKey;

pub(crate) fn recover_public_key(
message_hash: Keccak256Hash,
Expand Down Expand Up @@ -112,6 +111,7 @@ pub(crate) mod crypto256 {
}
}

#[cfg(not(target_arch = "wasm32"))]
#[cfg(feature = "helpers")]
#[cfg(test)]
mod tests {
Expand Down
1 change: 1 addition & 0 deletions src/protocol/data_package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ impl Debug for DataPackage {
}
}

#[cfg(not(target_arch = "wasm32"))]
#[cfg(feature = "helpers")]
#[cfg(test)]
mod tests {
Expand Down
1 change: 1 addition & 0 deletions src/protocol/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ fn trim_metadata(payload: &mut Vec<u8>) -> usize {
payload.trim_end(DATA_PACKAGES_COUNT_BS)
}

#[cfg(not(target_arch = "wasm32"))]
#[cfg(feature = "helpers")]
#[cfg(test)]
mod tests {
Expand Down

0 comments on commit 1c620db

Please sign in to comment.