Add whether pubkey recovered from sig is compressed. close #61
This commit is contained in:
parent
f09890fed1
commit
08e75a82c9
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ Message.verifyMessage = function (address, sig, message) {
|
|||
|
||||
var isCompressed = !!(sig.i & 4);
|
||||
var pubKey = ecdsa.recoverPubKey(sig.r, sig.s, hash, sig.i);
|
||||
pubKey.compressed = isCompressed;
|
||||
|
||||
var expectedAddress = pubKey.getBitcoinAddress().toString();
|
||||
|
||||
|
|
Loading…
Reference in a new issue