bitcoinCashSlpTestNet property

BipBitcoinCashConf bitcoinCashSlpTestNet
final

Configuration for Bitcoin Cash Simple Ledger Protocol test net

Implementation

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