Function cborDecode

  • Decodes CBOR-encoded data with temporary registration of the provided decoders.

    This function provides a scoped way to decode CBOR data with concordium-specific decoders, without permanently altering the global decoder registry. It temporarily registers the custom type decoders, performs the decoding, and then restores the previous decoder configuration.

    Returns

    The decoded value.

    Parameters

    • bytes: Uint8Array

      The CBOR encoded data to decode.

    Returns unknown

Generated using TypeDoc