Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 74f4860

Browse files
committed
upgrades peer-id to 0.6.0
1 parent 64073cb commit 74f4860

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"joi": "^8.0.2",
8282
"lodash.get": "^4.0.0",
8383
"lodash.set": "^4.0.0",
84-
"peer-id": "^0.5.0",
84+
"peer-id": "^0.6.0",
8585
"ronin": "^0.3.11",
8686
"temp": "^0.8.3"
8787
}

src/ipfs-core/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function IPFS (repo) {
5656
var pid = peerId.createFromPrivKey(config.Identity.PrivKey)
5757
callback(null, {
5858
ID: config.Identity.PeerID,
59-
PublicKey: pid.pubKey,
59+
PublicKey: pid.pubKey.toString('base64'),
6060
Addresses: config.Addresses,
6161
AgentVersion: 'js-ipfs',
6262
ProtocolVersion: '9000'

0 commit comments

Comments
 (0)