pub fn encode_bitstring(bits: &[u8]) -> Result<String>Expand description
Encode a raw bitstring to the multibase GZIP form (issuer side). The gzip header MTIME is zeroed and OS byte set to 0xff for deterministic output.
NOTE: the pure-Rust DEFLATE backend does not produce byte-identical compressed output to zlib (Python/Node/Go), so the encoded string may differ from those SDKs even though it decodes to the same bits. Verification is unaffected (gunzip is deterministic). Issuers needing byte-identical output across SDKs should build with a zlib-backed flate2 feature.