CoinConfig class

A base class representing configuration parameters for a cryptocurrency coin.

Implementers

Constructors

CoinConfig({required CoinNames coinNames, required int coinIdx, required bool isTestnet, required String defPath, required Bip32KeyNetVersions keyNetVer, required List<int>? wifNetVer, required Map<String, dynamic> addrParams, required EllipticCurveTypes type, required AddrEncoder addressEncoder})
Constructor for CoinConfig.
const

Properties

addressEncoder AddrEncoder
final
addrParams Map<String, dynamic>
final
coinIdx int
final
coinNames CoinNames
Configuration properties.
final
defPath String
final
hashCode int
The hash code for this object.
no setterinherited
isTestnet bool
final
keyNetVer Bip32KeyNetVersions
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type EllipticCurveTypes
final
wifNetVer List<int>?
final

Methods

copy({CoinNames? coinNames, int? coinIdx, bool? isTestnet, String? defPath, Bip32KeyNetVersions? keyNetVer, List<int>? wifNetVer, Map<String, dynamic>? addrParams, EllipticCurveTypes? type, AddrEncoder? addressEncoder}) CoinConfig
Creates a copy of the CoinConfig object with optional properties updated.
encoder() BlockchainAddressEncoder
Returns the address encoder for this coin configuration.
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'.
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