|
@ -59,6 +59,7 @@ Message.verifyMessage = function (address, sig, message) { |
|
|
|
|
|
|
|
|
var isCompressed = !!(sig.i & 4); |
|
|
var isCompressed = !!(sig.i & 4); |
|
|
var pubKey = ecdsa.recoverPubKey(sig.r, sig.s, hash, sig.i); |
|
|
var pubKey = ecdsa.recoverPubKey(sig.r, sig.s, hash, sig.i); |
|
|
|
|
|
pubKey.compressed = isCompressed; |
|
|
|
|
|
|
|
|
var expectedAddress = pubKey.getBitcoinAddress().toString(); |
|
|
var expectedAddress = pubKey.getBitcoinAddress().toString(); |
|
|
|
|
|
|
|
|