cardano_shelley_keys
Module for Cardano Shelley keys handling.
- class CardanoShelleyPublicKeys(pub_addr_key: Bip32PublicKey, pub_sk_key: Bip32PublicKey, coin_conf: BipCoinConf)
Bases:
object
Cardano Shelley public key class. It contains 2 CIP-1852 public keys (address + staking) and allows to get the Cardano Shelley address from them.
- m_pub_addr_key: Bip32PublicKey
- m_pub_sk_key: Bip32PublicKey
- m_coin_conf: BipCoinConf
- AddressKey() Bip32PublicKey
Get the address public key.
- Returns:
Bip32PublicKey object
- Return type:
Bip32PublicKey object
- RewardKey() Bip32PublicKey
Alias for StakingKey.
- Returns:
Bip32PublicKey object
- Return type:
Bip32PublicKey object
- StakingKey() Bip32PublicKey
Get the staking address public key.
- Returns:
Bip32PublicKey object
- Return type:
Bip32PublicKey object
- ToRewardAddress() str
Alias for ToStakingAddress.
- Returns:
Reward address string
- Return type:
str
- Raises:
ValueError – If the public key is not correspondent to an address index level
- ToStakingAddress() str
Return the staking address correspondent to the public key.
- Returns:
Staking address string
- Return type:
str
- Raises:
ValueError – If the public key is not correspondent to an address index level
- ToAddress() str
Return the address correspondent to the public key.
- Returns:
Address string
- Return type:
str
- Raises:
ValueError – If the public key is not correspondent to an address index level
- class CardanoShelleyPrivateKeys(priv_addr_key: Bip32PrivateKey, priv_sk_key: Bip32PrivateKey, coin_conf: BipCoinConf)
Bases:
object
Cardano Shelley private key class. It contains 2 BIP32 private keys (address + staking).
- m_priv_addr_key: Bip32PrivateKey
- m_priv_sk_key: Bip32PrivateKey
- m_coin_conf: BipCoinConf
- AddressKey() Bip32PrivateKey
Get the address private key.
- Returns:
Bip32PrivateKey object
- Return type:
Bip32PrivateKey object
- RewardKey() Bip32PrivateKey
Alias for StakingKey.
- Returns:
Bip32PrivateKey object
- Return type:
Bip32PrivateKey object
- StakingKey() Bip32PrivateKey
Get the staking address private key.
- Returns:
Bip32PrivateKey object
- Return type:
Bip32PrivateKey object
- PublicKeys() CardanoShelleyPublicKeys
Get the public keys correspondent to the private ones.
- Returns:
CardanoShelleyPublicKeys object
- Return type:
CardanoShelleyPublicKeys object