@node-lightning/wire
Version:
Lightning Network Wire Protocol
9 lines (8 loc) • 353 B
TypeScript
import { BufferReader } from "@node-lightning/bufio";
/**
* Reads TLVs from a reader until the entire stream is processed. The handler is
* responsible for doing something with the data bytes.
* @param reader
* @param handler
*/
export declare function readTlvs(reader: BufferReader, handler: (type: bigint, value: BufferReader) => boolean): void;