diff --git a/package.json b/package.json index 87debba..a92fcc8 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "url": "https://github.com/bitpay/bitcore-message.git" }, "dependencies": { - "bitcore": "^0.12.0" + "bitcore": "^0.12.7" }, "devDependencies": { "bitcore-build": "bitpay/bitcore-build", diff --git a/test/message.js b/test/message.js index 7a51985..d769493 100644 --- a/test/message.js +++ b/test/message.js @@ -100,6 +100,14 @@ describe('Message', function() { verified.should.equal(false); }); + it('will verify with an uncompressed pubkey', function() { + var privateKey = new bitcore.PrivateKey('5KYZdUEo39z3FPrtuX2QbbwGnNP5zTd7yyr2SC1j299sBCnWjss'); + var message = new Message('This is an example of a signed message.'); + var signature = message.sign(privateKey); + var verified = message.verify(privateKey.toAddress(), signature); + verified.should.equal(true); + }); + it('can chain methods', function() { var verified = Message(text).verify(address, signatureString); verified.should.equal(true);