From fbb64408d19d74717a8fdeff239e9e1eb26cd5af Mon Sep 17 00:00:00 2001 From: Jazz Turner-Baggs <473256+jazzz@users.noreply.github.com> Date: Wed, 29 Apr 2026 07:18:14 -0700 Subject: [PATCH] Hashlen update --- core/conversations/src/inbox_v2.rs | 2 +- core/conversations/src/utils.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/conversations/src/inbox_v2.rs b/core/conversations/src/inbox_v2.rs index 5bc2b27..0efbc21 100644 --- a/core/conversations/src/inbox_v2.rs +++ b/core/conversations/src/inbox_v2.rs @@ -73,7 +73,7 @@ impl InboxProtocolParams { } fn conversation_id_for_account_id(account_id: &AccountId) -> String { - blake2b_hex::(&["InboxV2|", "conversation_id|", account_id.as_str()]) + blake2b_hex::(&["InboxV2|", "conversation_id|", account_id.as_str()]) } } diff --git a/core/conversations/src/utils.rs b/core/conversations/src/utils.rs index 3c81443..93eaf85 100644 --- a/core/conversations/src/utils.rs +++ b/core/conversations/src/utils.rs @@ -1,3 +1,4 @@ +use blake2::{Blake2b, Digest}; use std::time::{SystemTime, UNIX_EPOCH}; pub fn timestamp_millis() -> i64 { @@ -33,16 +34,15 @@ pub mod hash_size { }; } - use blake2::digest::consts::{U4, U8}; + use blake2::digest::consts::{U6, U8}; hash_sizes! { - /// Generic hash size for tests and debug - Testing => U4, /// Account ID hash length AccountId => U8, + /// Conversation ID hash length + ConvoId => U6, } } -use blake2::{Blake2b, Digest}; /// This establishes an easy to use wrapper for hashes in this crate. /// The output is formatted string of hex characters pub fn blake2b_hex(components: &[impl AsRef<[u8]>]) -> String {