UNPKG

crypto-wallet-core

Version:

A multi-currency support library for address derivation, private key creation, and transaction creation

14 lines 549 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BchDeriver = void 0; const BitcoreLibCash = require('bitcore-lib-cash'); const btc_1 = require("../btc"); class BchDeriver extends btc_1.AbstractBitcoreLibDeriver { bitcoreLib = BitcoreLibCash; getAddress(network, pubKey, addressType) { pubKey = new this.bitcoreLib.PublicKey(pubKey); return new this.bitcoreLib.Address(pubKey, network, addressType).toString(true); } } exports.BchDeriver = BchDeriver; //# sourceMappingURL=index.js.map