bip_coin_conf
Module with helper class for generic BIP coins configuration handling.
- class BipCoinFctCallsConf(*args: str)
Bases:
object
Bip coin function calls configuration class.
- m_fct_names: Tuple[str, ...]
- ResolveCalls(pub_key: Bip32PublicKey) Any
Resolve function calls and get the result.
- Parameters:
pub_key (Bip32PublicKey object) – Bip32PublicKey object
- Returns:
Result
- Return type:
Any
- class BipCoinConf(coin_names: CoinNames, coin_idx: int, is_testnet: bool, def_path: str, key_net_ver: Bip32KeyNetVersions, wif_net_ver: Optional[bytes], bip32_cls: Type[Bip32Base], addr_cls: Type[IAddrEncoder], addr_params: Dict[str, Any])
Bases:
object
Bip coin configuration class.
- m_coin_idx: int
- m_is_testnet: bool
- m_def_path: str
- m_key_net_ver: Bip32KeyNetVersions
- m_wif_net_ver: Optional[bytes]
- m_addr_params: Dict[str, Any]
- m_any_addr_params_fct_call: bool
- m_addr_cls: Type[IAddrEncoder]
- CoinIndex() int
Get coin index.
- Returns:
Coin index
- Return type:
int
- IsTestNet() bool
Get if test net.
- Returns:
True if test net, false otherwise
- Return type:
bool
- DefaultPath() str
Get the default derivation path.
- Returns:
Default derivation path
- Return type:
str
- KeyNetVersions() Bip32KeyNetVersions
Get key net versions.
- Returns:
Bip32KeyNetVersions object
- Return type:
Bip32KeyNetVersions object
- WifNetVersion() Optional[bytes]
Get WIF net version.
- Returns:
WIF net version bytes None: If WIF is not supported
- Return type:
bytes
- Bip32Class() Type[Bip32Base]
Get the Bip32 class.
- Returns:
Bip32Base class
- Return type:
Bip32Base class
- AddrParams() Dict[str, Any]
Get the address parameters.
- Returns:
Address parameters
- Return type:
dict
- AddrParamsWithResolvedCalls(pub_key: Bip32PublicKey) Dict[str, Any]
Get the address parameters with resolved function calls.
- Parameters:
pub_key (Bip32PublicKey object) – Bip32PublicKey object
- Returns:
Address parameters
- Return type:
dict
- AddrClass() Type[IAddrEncoder]
Get the address class.
- Returns:
Address class
- Return type:
IAddrEncoder class