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

    Function expectBytes

    • Extract byte string value, throwing if type doesn't match.

      Parameters

      • cbor: Cbor

        CBOR value

      Returns Uint8Array

      Byte string

      With type 'WrongType' if cbor is not a byte string