UNPKG

@ngraveio/bc-ur

Version:

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

13 lines (12 loc) 363 B
/// <reference types="node" /> export default class UR { private _cborPayload; private _type; constructor(_cborPayload: Buffer, _type?: string); static fromBuffer(buf: Buffer): UR; static from(value: any, encoding?: BufferEncoding): UR; decodeCBOR(): Buffer; get type(): string; get cbor(): Buffer; equals(ur2: UR): boolean; }