Skip to content

Commit

Permalink
Merge pull request #16 from smithb1994/patch-1
Browse files Browse the repository at this point in the history
You need to have "bitcore" before "PrivateKey.fromWIF"
  • Loading branch information
Braydon Fuller committed Apr 15, 2015
2 parents 205a35b + 98fed17 commit 3f1e666
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ bower install bitcore-message
To sign a message:

```javascript
var privateKey = PrivateKey.fromWIF('cPBn5A4ikZvBTQ8D7NnvHZYCAxzDZ5Z2TSGW2LkyPiLxqYaJPBW4');
var bitcore = require('bitcore');
var Message = require('bitcore-message');

var privateKey = bitcore.PrivateKey.fromWIF('cPBn5A4ikZvBTQ8D7NnvHZYCAxzDZ5Z2TSGW2LkyPiLxqYaJPBW4');
var signature = Message('hello, world').sign(privateKey);
```

Expand Down

0 comments on commit 3f1e666

Please sign in to comment.