Skip to main content

encode_message_id

Function encode_message_id 

Source
pub fn encode_message_id(id: &str) -> [u8; 32]
Expand description

Encode an ID string to 32 bytes, handling pending IDs specially.

  • Pending IDs (“pending-{nanoseconds}”) are encoded with marker byte + timestamp
  • Regular hex IDs are decoded normally