Skip to content

Commit

Permalink
Merge pull request #4221 from stejbac/fix-proof-of-burn-signing-for-e…
Browse files Browse the repository at this point in the history
…ncrypted-wallets

Fix proof-of-burn signing for password protected wallets
  • Loading branch information
sqrrm authored May 5, 2020
2 parents cdad01a + 9dce794 commit daa6351
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ public Optional<String> sign(String proofOfBurnTxId, String message) {
return Optional.empty();

try {
String signatureBase64 = key.signMessage(message);
String signatureBase64 = bsqWalletService.isEncrypted()
? key.signMessage(message, bsqWalletService.getAesKey())
: key.signMessage(message);
return Optional.of(signatureBase64);
} catch (Throwable t) {
log.error(t.toString());
Expand Down

0 comments on commit daa6351

Please sign in to comment.