Skip to content

encryptKey and decryptKey exceptions should not be ignored #1107

@tomholub

Description

@tomholub

@IvanPizhenko Please tell me is there any reason to don't print the stacktrace of an exception?

Originally posted by @DenBond7 in #1103 (comment)

I'd say silently swallowing the exceptions is not ideal - I'd rather throw them so that we can deal with them. Returning an empty string could cause data loss. Let's say you change pass phrase of existing private key. Something fails. The result is empty string and that gets saved back to storage, replacing original private key -> data loss.

Metadata

Metadata

Assignees

Labels

PR submittedPR is submitted for this issuebug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions