Skip to main content

generate_dedup_key

Function generate_dedup_key 

Source
pub fn generate_dedup_key(task_type: &str, payload: Option<&[u8]>) -> String
Expand description

Generate a dedup key by hashing the task type and payload.

Produces a hex-encoded SHA-256 digest of task_type concatenated with the payload bytes (or an empty slice when there is no payload).