BtcCoin constructor

BtcCoin({
  1. WalletSetting? setting,
  2. dynamic isTaproot = false,
})

Implementation

BtcCoin({WalletSetting? setting, this.isTaproot = false}) {
  // Keep the caller's setting by reference so any later network state
  // (`networkType`) stays observable. The network and derivation scheme are
  // independent choices: a caller may pass BTCChain().testnet to select
  // testnet, but Taproot keys must still derive on the BIP86 path — that is
  // handled in [mnemonicToPrivateKey] rather than by copying the setting.
  this.setting = setting ?? (isTaproot ? _taproot : _default);
}