Skip to main content

generate_jekt_msgid

Function generate_jekt_msgid 

Source
pub(crate) fn generate_jekt_msgid() -> String
Expand description

A unique-enough message id for a signed jekt: no uuid dependency needed (this crate doesn’t otherwise pull one in) — timestamp + this process’s own pid + a monotonic counter is unique enough for its one purpose (a value both this signer and the receiving srv agree to include in the signed material, so a signature can’t be replayed under a different id).