Skip to main content

token_hash

Function token_hash 

Source
pub fn token_hash(token_hex: &str) -> Result<[u8; 32], TokenError>
Expand description

Compute SHA-256 of the token bytes. Used as the stable identity for state-machine tracking (never stores the raw token).