pub fn strip_codec_prefix(bytes: &[u8]) -> Result<&[u8], CodecPrefixError>Expand description
Strip a recognized public-key multicodec prefix from a complete key.
ยงErrors
Rejects unknown prefixes, non-public key classes, and invalid key lengths so callers cannot accidentally use prefixed or private bytes as raw keys.