@blockchaincommons/uniform-resources - v1.0.0-beta.3
    Preparing search index...
    • Decode a part from its CBOR array as the reference's minicbor decoder does: a five-element array of four u32s, each with a head of any width, and a definite-length byte string. Trailing bytes are ignored and a seqNum of 0 is accepted.

      Parameters

      • bytes: Uint8Array

      Returns FountainPart

      InvalidParameter for a non-Uint8Array; Decoder with the reference's text otherwise: "decode error: invalid CBOR array length", "unexpected type at position : expected ", " overflows target type at position : when converting u64 to u32", or "end of input bytes".