bitcoinCashTestNet property
Configuration for Bitcoin Cash test net
Implementation
final BipBitcoinCashConf bitcoinCashTestNet = BipBitcoinCashConf(
coinNames: CoinsConf.bitcoinCashTestNet.coinName,
coinIdx: Slip44.testnet,
chainType: ChainType.testnet,
defPath: derPathNonHardenedFull,
addressEncoder: (params, config) {
if (config.useLagacyAdder) {
return P2PKHAddrEncoder().encodeKey(
params.pubKey,
netVersion: CoinsConf.bitcoinCashTestNet.params.p2pkhLegacyNetVer,
);
}
return BchP2PKHAddrEncoder().encodeKey(
params.pubKey,
hrp: CoinsConf.bitcoinCashTestNet.params.p2pkhStdHrp,
netVersion: CoinsConf.bitcoinCashTestNet.params.p2pkhStdNetVer,
);
},
keyNetVer: bip44BtcKeyNetVerTest,
wifNetVer: CoinsConf.bitcoinCashTestNet.params.wifNetVer,
type: EllipticCurveTypes.secp256k1,
);