Skip to main content

normalize_blake3_to_cid

Function normalize_blake3_to_cid 

Source
pub fn normalize_blake3_to_cid(s: &str) -> String
Expand description

Normalize a BLAKE3 hash string to CID base32lower format.

If s is a 64-char hex digest, converts to CID. Otherwise returns s unchanged. Used at storage boundaries (pgvector, embedding index) to ensure consistent content-addressable identifiers.