bitcore-message
Advanced tools
Comparing version 0.11.0 to 0.11.1
{ | ||
"name": "bitcore-message", | ||
"main": "./bitcore-message.min.js", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"homepage": "https://github.com/bitpay/bitcore-message", | ||
@@ -6,0 +6,0 @@ "authors": [ |
{ | ||
"name": "bitcore-message", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"description": "Bitcoin Messages for Bitcore", | ||
@@ -26,3 +26,3 @@ "author": "BitPay <dev@bitpay.com>", | ||
"dependencies": { | ||
"bitcore": "^0.12.0" | ||
"bitcore": "^0.12.7" | ||
}, | ||
@@ -29,0 +29,0 @@ "devDependencies": { |
@@ -103,2 +103,10 @@ 'use strict'; | ||
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() { | ||
@@ -105,0 +113,0 @@ var verified = Message(text).verify(address, signatureString); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19057
16
328
3
Updatedbitcore@^0.12.7