getAlgorithmMultiCodec

Retrieves the multicodec identifier associated with a given algorithmId.

This function consults a predefined mapping of algorithmId to their respective multicodec identifiers, returning the matched identifier. Multicodec identifiers are useful for encoding the format or type of the key in systems that leverage multiple cryptographic standards.

Return

The multicodec identifier as an Int if a mapping exists, or null if the algorithmId combination is not supported or mapped.

Example

val multicodec = getAlgorithmMultiCodec(JWSAlgorithm.EdDSA, Curve.Ed25519)

Parameters

algorithmId

The algorithmId for which the multicodec is requested.