@blockchaincommons/dcbor - v1.0.0-beta.1
    Preparing search index...
    • Convert a hex string to bytes.

      Whitespace tolerance. ASCII whitespace is stripped before decoding so users can paste annotated hex dumps directly.

      Validation. After whitespace stripping, the input must have even length and contain only [0-9a-fA-F]; anything else throws CborError with code Custom.

      Parameters

      • hexString: string

      Returns Uint8Array<ArrayBuffer>

      Custom - invalid hex string.