pub fn encode_component(
mtype: u8,
stype: u8,
version: u8,
bit_length: u32,
digest: &[u8],
) -> IsccResult<String>Expand description
Encode a raw digest into an ISCC unit string.
Takes integer type identifiers (matching MainType, SubType, Version enum values)
and a raw digest, returns a base32-encoded ISCC unit string.
ยงErrors
Returns IsccError::InvalidInput if enum values are out of range, if mtype is
MainType::Iscc (5), or if digest.len() < bit_length / 8.