import { BitcoinishPaymentsUtils } from './bitcoinish' ; import { toBitcoinishConfig } from './utils' ; import { BitcoinPaymentsUtilsConfig } from './types' ; import { isValidAddress , isValidPrivateKey , standardizeAddress , isValidPublicKey } from './helpers' ; export class BitcoinPaymentsUtils extends BitcoinishPaymentsUtils { constructor ( config = { } ) { super ( toBitcoinishConfig ( config ) ) ; } isValidAddress ( address ) { return isValidAddress ( address , this . networkType ) ; } standardizeAddress ( address ) { return standardizeAddress ( address , this . networkType ) ; } isValidPublicKey ( privateKey ) { return isValidPublicKey ( privateKey , this . networkType ) ; } isValidPrivateKey ( privateKey ) { return isValidPrivateKey ( privateKey , this . networkType ) ; } }