Decrypts a secret with the master key using the given IV.
Declared in <wallet/crypter.h>
[[nodiscard]]
bool
DecryptSecret(
CKeyingMaterial const& master_key,
std::span<unsigned char const> ciphertext,
uint256 const& iv,
CKeyingMaterial& plaintext);
| Name | Description |
|---|---|
| master_key | The master key used as the decryption key. |
| ciphertext | The ciphertext to decrypt. |
| iv | Source of the initialization vector. |
| plaintext | Receives the recovered secret. |