bitcoinCashMainNet property
with lagacy Configuration for Bitcoin Cash main net
Implementation
static final BipBitcoinCashConf bitcoinCashMainNet = BipBitcoinCashConf(
coinNames: CoinsConf.bitcoinCashMainNet.coinName,
coinIdx: Slip44.bitcoinCash,
isTestnet: false,
defPath: derPathNonHardenedFull,
keyNetVer: bip49BtcKeyNetVerMain,
wifNetVer: CoinsConf.bitcoinCashMainNet.params.wifNetVer,
type: EllipticCurveTypes.secp256k1,
addressEncoder: ([dynamic legacy]) {
if (legacy == true) {
return P2SHAddrEncoder();
}
return BchP2SHAddrEncoder();
},
addrParams: {
'std': {
"net_ver": CoinsConf.bitcoinCashMainNet.params.p2shStdNetVer!,
'hrp': CoinsConf.bitcoinCashMainNet.params.p2shStdHrp,
},
'legacy': {
"net_ver": CoinsConf.bitcoinCashMainNet.params.p2shLegacyNetVer,
},
},
);