diff --git a/src/message.js b/src/message.js index beacfa6..e2367c7 100644 --- a/src/message.js +++ b/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();