BC-DCBOR TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Function expectTaggedContent

    • Extract content if has specific tag, throwing if not.

      Parameters

      • cbor: Cbor

        CBOR value

      • tag: number | bigint

        Expected tag value

      Returns Cbor

      Tagged content

      With type 'WrongType' if cbor is not tagged with the expected tag