Creates a new multipart encoder for the given UR.
The UR to encode
Maximum length of each fragment in bytes
Gets the next part of the encoding.
Parts 1 through seqLen are "pure" fragments containing one piece each. Parts beyond seqLen are "mixed" fragments using fountain codes for redundancy.
The next UR string part
Gets the current part index.
Gets the total number of pure parts.
Note: Fountain codes can generate unlimited parts beyond this count for additional redundancy.
Encodes a UR as multiple parts using fountain codes.
This allows large CBOR structures to be split into multiple UR strings that can be transmitted separately and reassembled. The encoder uses fountain codes for resilient transmission over lossy channels.
For single-part URs (small payloads), use the regular UR.string() method.
Example