File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
core/src/main/java/haveno/core/account/sign Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -335,12 +335,13 @@ private boolean verifySignatureWithECKey(SignedWitness signedWitness) {
335
335
String message = Utilities .encodeToHex (signedWitness .getAccountAgeWitnessHash ());
336
336
String signatureBase64 = new String (signedWitness .getSignature (), Charsets .UTF_8 );
337
337
ECKey key = ECKey .fromPublicOnly (signedWitness .getSignerPubKey ());
338
- if (arbitratorManager .isPublicKeyInList (Utilities .encodeToHex (key .getPubKey ()))) {
338
+ String pubKeyHex = Utilities .encodeToHex (key .getPubKey ());
339
+ if (arbitratorManager .isPublicKeyInList (pubKeyHex )) {
339
340
key .verifyMessage (message , signatureBase64 );
340
341
verifySignatureWithECKeyResultCache .put (hash , true );
341
342
return true ;
342
343
} else {
343
- log .warn ("Provided EC key is not in list of valid arbitrators." );
344
+ log .warn ("Provided EC key is not in list of valid arbitrators: " + pubKeyHex );
344
345
verifySignatureWithECKeyResultCache .put (hash , false );
345
346
return false ;
346
347
}
You can’t perform that action at this time.
0 commit comments