@bcpros/crypto-wallet-core
Version:
A multi-currency support library for address derivation, private key creation, and transaction creation
19 lines • 680 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BchValidation = void 0;
var BitcoreCash = require('@bcpros/bitcore-lib-cash');
var BchValidation = (function () {
function BchValidation() {
}
BchValidation.prototype.validateAddress = function (network, address) {
var AddressCash = BitcoreCash.Address;
return AddressCash.isValid(address, network);
};
BchValidation.prototype.validateUri = function (addressUri) {
var URICash = BitcoreCash.URI;
return URICash.isValid(addressUri);
};
return BchValidation;
}());
exports.BchValidation = BchValidation;
//# sourceMappingURL=index.js.map