Use a more specific exception class for note decryption failure
Closes #1545.
This commit is contained in:
@@ -82,6 +82,11 @@ public:
|
||||
uint256 random_uint256();
|
||||
uint252 random_uint252();
|
||||
|
||||
class note_decryption_failed : public std::runtime_error {
|
||||
public:
|
||||
note_decryption_failed() : std::runtime_error("Could not decrypt message") { }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
typedef libzcash::NoteEncryption<ZC_NOTEPLAINTEXT_SIZE> ZCNoteEncryption;
|
||||
|
||||
Reference in New Issue
Block a user