Browse Source

Add whether pubkey recovered from sig is compressed. close #61

hk-custom-address
Andreas Brekken 11 years ago
parent
commit
08e75a82c9
  1. 1
      src/message.js

1
src/message.js

@ -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…
Cancel
Save