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