diff --git a/base_layer/common_types/src/types/mod.rs b/base_layer/common_types/src/types/mod.rs index 5c2f7cdfd2..77a5b23270 100644 --- a/base_layer/common_types/src/types/mod.rs +++ b/base_layer/common_types/src/types/mod.rs @@ -91,7 +91,8 @@ hasher!( hash_domain!( BulletRangeProofHashDomain, - "com.tari.base_layer.common_types.bullet_rangeproofs" + "com.tari.base_layer.common_types.bullet_rangeproofs", + 1 ); pub type BulletRangeProofHasherBlake256 = DomainSeparatedHasher, BulletRangeProofHashDomain>; diff --git a/base_layer/core/src/transactions/key_manager/inner.rs b/base_layer/core/src/transactions/key_manager/inner.rs index 9c7019cc9c..85ad670052 100644 --- a/base_layer/core/src/transactions/key_manager/inner.rs +++ b/base_layer/core/src/transactions/key_manager/inner.rs @@ -86,7 +86,8 @@ use crate::{ hash_domain!( KeyManagerHashingDomain, - "com.tari.base_layer.core.transactions.key_manager" + "com.tari.base_layer.core.transactions.key_manager", + 1 ); pub struct TransactionKeyManagerInner { diff --git a/base_layer/wallet/src/wallet.rs b/base_layer/wallet/src/wallet.rs index ce38426b16..0f818efa5a 100644 --- a/base_layer/wallet/src/wallet.rs +++ b/base_layer/wallet/src/wallet.rs @@ -108,7 +108,11 @@ const LOG_TARGET: &str = "wallet"; const WALLET_BUFFER_MIN_SIZE: usize = 300; // Domain separator for signing arbitrary messages with a wallet secret key -hash_domain!(WalletMessageSigningDomain, "com.tari.base_layer.wallet.message_signing"); +hash_domain!( + WalletMessageSigningDomain, + "com.tari.base_layer.wallet.message_signing", + 1 +); /// A structure containing the config and services that a Wallet application will require. This struct will start up all /// the services and provide the APIs that applications will use to interact with the services diff --git a/comms/dht/src/lib.rs b/comms/dht/src/lib.rs index 024081fa82..2495db422c 100644 --- a/comms/dht/src/lib.rs +++ b/comms/dht/src/lib.rs @@ -126,7 +126,7 @@ use blake2::Blake2b; use digest::consts::{U32, U64}; use tari_crypto::{hash_domain, hashing::DomainSeparatedHasher}; -hash_domain!(DHTCommsHashDomain, "com.tari.comms.dht"); +hash_domain!(DHTCommsHashDomain, "com.tari.comms.dht", 1); /// Hash domain used to produce binding message hashes pub fn comms_dht_hash_domain_challenge() -> DomainSeparatedHasher, DHTCommsHashDomain> {