BipBitcoinCashConf class
A class representing the configuration for Bitcoin Cash (BCH) based on the BIP framework.
- Inheritance
-
- Object
- BipCoinConfig
- BipBitcoinCashConf
Constructors
-
BipBitcoinCashConf({required CoinNames coinNames, required int coinIdx, required bool isTestnet, required String defPath, required Bip32KeyNetVersions keyNetVer, required List<
int> ? wifNetVer, required EllipticCurveTypes type, required AddrEncoder addressEncoder, required Map<String, dynamic> addrParams, bool useLagacyAdder = false}) -
Constructor for BipBitcoinCashConf.
const
Properties
- addressEncoder → AddrEncoder
-
finalinherited
-
addrParams
→ Map<
String, dynamic> -
Overrides the 'addrParams' getter to return the appropriate address parameters
based on the 'useLagacyAdder' flag.
no setteroverride
- coinIdx → int
-
finalinherited
- coinNames → CoinNames
-
Configuration properties.
finalinherited
- defPath → String
-
finalinherited
- hasExtendedKeys → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasWif → bool
-
no setterinherited
- isTestnet → bool
-
finalinherited
- keyNetVer → Bip32KeyNetVersions
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → EllipticCurveTypes
-
finalinherited
- useLagacyAdder → bool
-
Flag to indicate whether legacy address format should be used.
final
-
wifNetVer
→ List<
int> ? -
finalinherited
Methods
-
copy(
{CoinNames? coinNames, int? coinIdx, bool? isTestnet, String? defPath, Bip32KeyNetVersions? keyNetVer, Bip32KeyNetVersions? altKeyNetVer, List< int> ? wifNetVer, Map<String, dynamic> ? addrParams, EllipticCurveTypes? type, AddrEncoder? addressEncoder, bool? useLagacyAdder}) → BipBitcoinCashConf -
Creates a copy of the BipBitcoinCashConf object with optional properties updated.
override
-
encoder(
) → BlockchainAddressEncoder -
Returns an address encoder based on the 'useLagacyAdder' flag.
override
-
getParams(
Bip32PublicKey pubKey) → Map< String, dynamic> -
Get address parameters with optional chain code inclusion.
If 'chain_code' is specified in 'addrParams', it will be replaced with the chain code
from the provided 'pubKey'.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited