pub fn hash_ref_from_hex(s: &str) -> Result<HashRef, String>
Digest hex (64 chars = SHA-256, 96 = SHA-384) → HashRef.