From a0dbc2ced885a29e389194e6576ae651c2d71949 Mon Sep 17 00:00:00 2001 From: David Dias Date: Fri, 17 Jul 2015 08:14:44 -0700 Subject: [PATCH] fix args order --- src/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index f3b8030..5791021 100644 --- a/src/index.js +++ b/src/index.js @@ -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) }