class
EncryptedPrivateKeyRepresent an encrypted BIP32-Ed25519 private key.
Constructors, destructors, conversion operators
-
EncryptedPrivateKey(std::
span<const uint8_t, XKEY_ SIZE> prv) explicit - Construct a key object from a span of key bytes.
-
EncryptedPrivateKey(std::
span<const uint8_t, KEY_ SIZE> pub, std:: span<const uint8_t, CHAIN_ CODE_ SIZE> cc) - Construct a key object from bytes.
Public functions
-
auto decrypt(std::
string_view password) → PrivateKey - Decrypt the private key for usage.
Function documentation
cardano:: bip32_ed25519:: EncryptedPrivateKey:: EncryptedPrivateKey(std:: span<const uint8_t, XKEY_ SIZE> prv) explicit
Construct a key object from a span of key bytes.
Parameters | |
---|---|
prv | A span of bytes containing the key (encrypted) and the chain code (unencrypted) that will be copied into the object. |
cardano:: bip32_ed25519:: EncryptedPrivateKey:: EncryptedPrivateKey(std:: span<const uint8_t, KEY_ SIZE> pub,
std:: span<const uint8_t, CHAIN_ CODE_ SIZE> cc)
Construct a key object from bytes.
Parameters | |
---|---|
pub | The encrypted private key as a span of bytes. |
cc | The chain code (unencrypted) as a span of bytes. |
PrivateKey cardano:: bip32_ed25519:: EncryptedPrivateKey:: decrypt(std:: string_view password)
Decrypt the private key for usage.
Parameters | |
---|---|
password | The password used to encrypt the key. |
Returns | A decrypted private key object that may be used. |