Generation of mnemonics, seeds, private/public keys and addresses for different types of cryptocurrencies
P2PKHAddrEncoder
Bip32Path
can distinguish between absolute and relative pathsBip32PathParser
discards empty elementsBip32Base.FromPrivateKey
and Bip32Base.FromPublicKey
can now recover the full derivation data (if specified)Bip44Base.FromPrivateKey
can now recover the full derivation data (if specified)Bip44Base.FromPublicKey
methodBip39ChecksumError
and MoneroChecksumError
) were replaced by the common MnemonicChecksumError
Coin | Main net enum | Test net enum |
---|---|---|
Akash Network | Bip44Coins.AKASH_NETWORK |
- |
Certik | Bip44Coins.CERTIK |
- |
Near Protocol | Bip44Coins.NEAR_PROTOCOL |
- |
Osmosis | Bip44Coins.OSMOSIS |
- |
Secret Network (old path) | Bip44Coins.SECRET_NETWORK_OLD |
- |
Secret Network (new path) | Bip44Coins.SECRET_NETWORK_NEW |
- |
AlgoAddrDecoder
, AlgoAddrEncoder
). The old address classes are kept for compatibility but they are just aliases for the correspondent encoder class (e.g. AlgoAddr
-> AlgoAddrEncoder
) .Coin | Main net enum | Test net enum |
---|---|---|
Bitcoin Cash SLP | Bip44Coins.BITCOIN_CASH_SLP |
Bip44Coins.BITCOIN_CASH_SLP_TESTNET |
Celo | Bip44Coins.CELO |
- |
eCash | Bip44Coins.ECASH |
Bip44Coins.ECASH_TESTNET |
Coin | Main net enum | Test net enum |
---|---|---|
Bitcoin Cash SLP | Bip49Coins.BITCOIN_CASH_SLP |
Bip49Coins.BITCOIN_CASH_SLP_TESTNET |
eCash | Bip49Coins.ECASH |
Bip49Coins.ECASH_TESTNET |
BchAddrConverter
for converting Bitcoin Cash addressesimport *
)Bip32
class does not exist anymore. It has been replaced by different classes depending on the underlying elliptic curve: Bip32Ed25519Slip
, Bip32Ed25519Blake2bSlip
, Bip32Nist256p1
, Bip32Secp256k1
Bip49
and Bip84
now have their own coin types: Bip49Coins
and Bip84Coins
Bip39MnemonicValidator.GetEntropy
method has been replaced by Bip39MnemonicDecoder.Decode
methodBip39MnemonicValidator
class is passed as argument to the methods instead of the constructor (e.g. Bip39MnemonicValidator(mnemonic).IsValid()
-> Bip39MnemonicValidator().IsValid(mnemonic)
)P2PKH, P2SH and P2WPKH
address classes now have an "Addr" suffix (i.e. P2PKHAddr, P2SHAddr and P2WPKHAddr
, same for BCH versions)ToAddress
method now is called EncodeKey
(e.g. EthAddr.ToAddress
-> EthAddr.EncodeKey
) and the additional parameters shall be explicitly namedAtomBech32Decoder
/AtomBech32Encoder
is now simply called Bech32Decoder
/Bech32Encoder
P2PKHAddr
/P2SHAddr
/P2WPKHAddr
classes do not have anymore Bitcoin net versions as default parameter