fix args order

This commit is contained in:
David Dias
2015-07-17 08:14:44 -07:00
parent 6415a13714
commit a0dbc2ced8

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)
}