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

    Function validateTag

    • Helper function to validate that a CBOR value has one of the expected tags.

      Parameters

      • cbor: Cbor

        CBOR value to validate

      • expectedTags: Tag[]

        Array of valid tags

      Returns Tag

      The matching tag

      Error if the value is not tagged or has an unexpected tag