libp2p / js-peer-id

peer-id implementation in JavaScript. Deprecated; use https://github.com/libp2p/js-libp2p-peer-id instead.
https://github.com/libp2p/js-libp2p-peer-id
MIT License
80 stars 44 forks source link

fix: privKey possible undefined #129

Closed AuHau closed 4 years ago

AuHau commented 4 years ago

If pubKey can be undefined then the privKey should be possible to have undefined as well.