$ cnpm install libp2p-peer-id
peer-ids in JavaScript
A basic implementation of a peer id
import { PeerId } from 'libp2p-peer-id'
const id = new PeerId(...)
console.log(id.toCid())
$ npm i libp2p-peer-id
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Copyright 2013 - present © cnpmjs.org | Home |