|
@ -32,7 +32,11 @@ WalletUtils.signMessage = function(text, privKey) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WalletUtils.verifyMessage = function(text, signature, pubKey) { |
|
|
WalletUtils.verifyMessage = function(text, signature, pubKey) { |
|
|
$.checkArgument(signature, text, pubKey); |
|
|
$.checkArgument(text, pubKey); |
|
|
|
|
|
|
|
|
|
|
|
if (!signature) |
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
var pub = new PublicKey(pubKey); |
|
|
var pub = new PublicKey(pubKey); |
|
|
var hash = WalletUtils.hashMessage(text); |
|
|
var hash = WalletUtils.hashMessage(text); |
|
|
|
|
|
|
|
|