UNPKG

@apocentre/bc-ur

Version:

A JS implementation of the Uniform Resources (UR) specification from Blockchain Commons

18 lines (17 loc) 549 B
/// <reference types="node" /> import UR from './ur'; export default class UREncoder { private ur; private fountainEncoder; constructor(_ur: UR, maxFragmentLength?: number, firstSeqNum?: number, minFragmentLength?: number); get fragmentsLength(): number; get fragments(): Buffer[]; get messageLength(): number; get cbor(): Buffer; encodeWhole(): string[]; nextPart(): string; private static encodeUri; private static encodeUR; private static encodePart; static encodeSinglePart(ur: UR): string; }