pub fn message_hash(module_id: &ModuleId, handler_id: &IdentStr) -> u64 {
    let hash_str = format!(
        "0x{}::{}::{}",
        module_id.address(),
        module_id.name(),
        handler_id
    );
    let hash_bytes: [u8; 8] = Sha3_256::digest(hash_str.as_bytes())[0..8]
        .try_into()
        .unwrap();
    u64::from_be_bytes(hash_bytes)
}
/// Compute a hash for a message.
Compute a hash for a message.
Compute a hash for a message .
pub fn message_hash(module_id: &ModuleId, handler_id: &IdentStr) -> u64 {
    let hash_str = format!(
        "0x{}::{}::{}",
        module_id.address(),
        module_id.name(),
        handler_id
    );
    let hash_bytes: [u8; 8] = Sha3_256::digest(hash_str.as_bytes())[0..8]
        .try_into()
        .unwrap();
    u64::from_be_bytes(hash_bytes)
}
pub fn message_hash ( module_id : & ModuleId , handler_id : & IdentStr ) -> u64 { let hash_str = format ! ( " " module_id address ( ) module_id name ( ) handler_id ) ; let hash_bytes : [ u8 ; 8 ] = Sha3_256 :: digest ( hash_str . as_bytes ( ) ) [ 0 .. 8 ] . try_into ( ) . unwrap ( ) ; u64 :: from_be_bytes ( hash_bytes ) }
Compute a hash for a message.
Compute a hash for a message .
module_id
&ModuleId
handler_id
&IdentStr