Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitcore-message

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcore-message - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

lib/errors.js

2

bower.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc