Skip to main content

Crate codec_multicodec

Crate codec_multicodec 

Source
Expand description

Multicodec prefix table and lookup for tagging key and hash material with its algorithm.

Structs§

CodecLookupResult
Codec metadata resolved from a multicodec prefix.
CodecSpec
Static metadata for one multicodec entry.

Enums§

CodecTag
Multicodec table tag.
KeyMaterialKind
Key-material class for codecs that carry raw key bytes.

Constants§

FIXED_LENGTH_NOT_APPLICABLE
Fixed length does not apply to this codec.
VARIABLE_KEY_LENGTH
Variable-length key payload. RSA keys use DER, whose length depends on modulus size and integer leading-byte normalization.

Statics§

MULTICODEC_TABLE
Single source of truth for multicodec prefixes

Functions§

lookup_codec_prefix
Lookup multicodec prefix → codec metadata
strip_codec_prefix
Strip multicodec prefix → raw key bytes