Skip to main content

Module multicodec

Module multicodec 

Source
Expand description

Semantic multicodec registry lookup, prefix handling, and metadata. Semantic layer for multicodec lookup operations.

The public protobuf, FFI, JNI, WASM, and SDK adapters are responsible for transport validation and representation conversion. This module owns the operation meaning so adapters do not independently classify multicodec lookup failures or table metadata.

Structs§

MulticodecLookup
Semantic result for prefix lookup by payload bytes.
MulticodecSpec
Borrowed semantic metadata for one supported multicodec entry.
MulticodecTable
Semantic result for the supported multicodec table.

Enums§

CodecTag
Semantic class of a supported multicodec entry.
KeyMaterialKind
Semantic key-material classification for a supported multicodec entry.
MulticodecLength
Semantic length rule for the value described by a multicodec entry.
MulticodecOperationError
Semantic failure reasons for multicodec lookup operations.

Functions§

lookup_prefix
Resolve the known multicodec prefix at the start of value.
prefix_for_name
Resolve a canonical multicodec name to semantic registry metadata.
strip_prefix
Strip a known multicodec prefix, preserving value when no prefix matches.
supported_table
Return all supported multicodec entries in stable registry order.