@node-lightning/wire
Version:
Lightning Network Wire Protocol
9 lines (8 loc) • 366 B
TypeScript
import { BufferReader } from "@node-lightning/bufio";
import { Address } from "../../domain/Address";
import { AddressType } from "../../domain/AddressType";
/**
* Deserializes an address based on the type and returns
* an instance of Address as a polymorphic type.
*/
export declare function deserializeAddress(type: AddressType, reader: BufferReader): Address;