@node-lightning/wire
Version:
Lightning Network Wire Protocol
20 lines • 639 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddressTor2 = void 0;
const Address_1 = require("./Address");
const AddressType_1 = require("./AddressType");
class AddressTor2 extends Address_1.Address {
/**
* Represents an TOR v2 address with the host and port. TOR v2
* addresses are an 80-bit hash represented as base32 encoding
* that is 16 characters in length
*/
constructor(host, port) {
super(host, port);
}
get type() {
return AddressType_1.AddressType.TOR2;
}
}
exports.AddressTor2 = AddressTor2;
//# sourceMappingURL=AddressTor2.js.map