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: bip49BtcKeyNetVerTest,
  wifNetVer: CoinsConf.bitcoinCashSlpTestNet.params.wifNetVer,
  type: EllipticCurveTypes.secp256k1,
  addressEncoder: (params, config) {
    if (config.useLagacyAdder) {
      return P2SHAddrEncoder().encodeKey(
        params.pubKey,
        netVersion: CoinsConf.bitcoinCashSlpTestNet.params.p2shLegacyNetVer,
      );
    }
    return BchP2SHAddrEncoder().encodeKey(
      params.pubKey,
      hrp: CoinsConf.bitcoinCashSlpTestNet.params.p2shStdHrp,
      netVersion: CoinsConf.bitcoinCashSlpTestNet.params.p2shStdNetVer,
    );
  },

  /// addrClsLegacy: P2SHAddrEncoder,
);