Compare commits

...

4 Commits

Author SHA1 Message Date
220355fb25 Release v0.2.0. 2015-07-17 08:15:11 -07:00
a0dbc2ced8 fix args order 2015-07-17 08:14:44 -07:00
6415a13714 update multihashing dep 2015-07-10 11:50:58 -07:00
4185ff1be6 add link to freenode#ipfs badge 2015-07-08 15:38:30 -07:00
3 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,7 @@
ipfs-peer-id Node.js implementation
===================================
![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
> IPFS Peer Id implementation in Node.js

View File

@ -1,6 +1,6 @@
{
"name": "ipfs-peer-id",
"version": "0.1.0",
"version": "0.2.0",
"description": "IPFS Peer Id implementation in Node.js",
"main": "src/index.js",
"scripts": {
@ -29,6 +29,6 @@
},
"dependencies": {
"bs58": "^2.0.1",
"multihashing": "^0.1.2"
"multihashing": "^0.1.3"
}
}

View File

@ -8,7 +8,7 @@ var crypto = require('crypto')
exports = module.exports = Id
function Id (id, pubKey, privKey) {
function Id (id, privKey, pubKey) {
var self = this
if (!(self instanceof Id)) {
@ -70,7 +70,6 @@ exports.createFromB58String = function (str) {
exports.createFromPubKey = function (pubKey) {
var mhId = multihashing(pubKey, 'sha2-256')
return new Id(mhId, null, pubKey)
}