mirror of
https://github.com/fluencelabs/js-peer-id
synced 2025-04-25 12:22:19 +00:00
chore: lead maintainer update (#98)
This commit is contained in:
parent
94aa3483b3
commit
911aa634d3
@ -22,7 +22,6 @@ jobs:
|
|||||||
|
|
||||||
- stage: check
|
- stage: check
|
||||||
script:
|
script:
|
||||||
- npx aegir commitlint --travis
|
|
||||||
- npx aegir dep-check
|
- npx aegir dep-check
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
## Lead Maintainer
|
## Lead Maintainer
|
||||||
|
|
||||||
[Pedro Teixeira](https://github.com/pgte)
|
[Vasco Santos](https://github.com/vasco-santos)
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "peer-id",
|
"name": "peer-id",
|
||||||
"version": "0.13.2",
|
"version": "0.13.2",
|
||||||
"description": "IPFS Peer Id implementation in Node.js",
|
"description": "IPFS Peer Id implementation in Node.js",
|
||||||
"leadMaintainer": "Pedro Teixeira <i@pgte.me>",
|
"leadMaintainer": "Vasco Santos <santos.vasco10@gmail.com>",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"bin": "src/bin.js",
|
"bin": "src/bin.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -34,7 +34,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/libp2p/js-peer-id",
|
"homepage": "https://github.com/libp2p/js-peer-id",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"aegir": "^19.0.5",
|
"aegir": "^20.0.0",
|
||||||
"bundlesize": "~0.18.0",
|
"bundlesize": "~0.18.0",
|
||||||
"chai": "^4.2.0",
|
"chai": "^4.2.0",
|
||||||
"dirty-chai": "^2.0.1"
|
"dirty-chai": "^2.0.1"
|
||||||
|
@ -213,10 +213,10 @@ exports.createFromPrivKey = async (key) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
exports.createFromJSON = async (obj) => {
|
exports.createFromJSON = async (obj) => {
|
||||||
let id = mh.fromB58String(obj.id)
|
const id = mh.fromB58String(obj.id)
|
||||||
let rawPrivKey = obj.privKey && Buffer.from(obj.privKey, 'base64')
|
const rawPrivKey = obj.privKey && Buffer.from(obj.privKey, 'base64')
|
||||||
let rawPubKey = obj.pubKey && Buffer.from(obj.pubKey, 'base64')
|
const rawPubKey = obj.pubKey && Buffer.from(obj.pubKey, 'base64')
|
||||||
let pub = rawPubKey && await cryptoKeys.unmarshalPublicKey(rawPubKey)
|
const pub = rawPubKey && await cryptoKeys.unmarshalPublicKey(rawPubKey)
|
||||||
|
|
||||||
if (!rawPrivKey) {
|
if (!rawPrivKey) {
|
||||||
return new PeerIdWithIs(id, null, pub)
|
return new PeerIdWithIs(id, null, pub)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user