bitcore -> bitcore-lib
This commit is contained in:
parent
740fc74546
commit
51718e48e2
|
@ -23,7 +23,7 @@ bower install bitcore-message
|
|||
To sign a message:
|
||||
|
||||
```javascript
|
||||
var bitcore = require('bitcore');
|
||||
var bitcore = require('bitcore-lib');
|
||||
var Message = require('bitcore-message');
|
||||
|
||||
var privateKey = bitcore.PrivateKey.fromWIF('cPBn5A4ikZvBTQ8D7NnvHZYCAxzDZ5Z2TSGW2LkyPiLxqYaJPBW4');
|
||||
|
|
2
index.js
2
index.js
|
@ -1,4 +1,4 @@
|
|||
var bitcore = require('bitcore');
|
||||
var bitcore = require('bitcore-lib');
|
||||
bitcore.Message = require('./lib/message');
|
||||
|
||||
module.exports = bitcore.Message;
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
var bitcore = require('bitcore');
|
||||
var bitcore = require('bitcore-lib');
|
||||
var _ = bitcore.deps._;
|
||||
var PrivateKey = bitcore.PrivateKey;
|
||||
var PublicKey = bitcore.PublicKey;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
"url": "https://github.com/bitpay/bitcore-message.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"bitcore": "^0.13.0"
|
||||
"bitcore-lib": "^0.13.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"bitcore-build": "bitpay/bitcore-build",
|
||||
|
|
|
@ -4,7 +4,7 @@ var chai = require('chai');
|
|||
var expect = chai.expect;
|
||||
var should = chai.should();
|
||||
|
||||
var bitcore = require('bitcore');
|
||||
var bitcore = require('bitcore-lib');
|
||||
var Address = bitcore.Address;
|
||||
var Signature = bitcore.crypto.Signature;
|
||||
var Message = require('../');
|
||||
|
|
Loading…
Reference in New Issue