2.0.2 • Published 11 months ago

@libp2p/interface-peer-id v2.0.2

Weekly downloads
-
License
Apache-2.0 OR MIT
Repository
github
Last release
11 months ago

@libp2p/interface-peer-id

libp2p.io Discuss codecov CI

Peer Identifier interface for libp2p

Table of contents

Install

$ npm i @libp2p/interface-peer-id

The primary goal of this module is to enable developers to implement PeerId modules. This module and test suite was heavily inspired by earlier implementation of PeerId.

Publishing a test suite as a module lets multiple modules all ensure compatibility since they use the same test suite.

The API is presented with both Node.js and Go primitives, however, there is not actual limitations for it to be extended for any other language, pushing forward the cross compatibility and interop through different stacks.

Modules that implement the interface

Send a PR to add a new one if you happen to find or write one.

Badge

Include this badge in your readme if you make a new module that uses interface-peer-id API.

npm.io

Usage

Node.js

Install libp2p-interfaces-compliance-tests as one of the development dependencies of your project and as a test file. Then, using mocha (for JavaScript) or a test runner with compatible API, do:

const tests = require('libp2p-interfaces-compliance-tests/peer-id')

describe('your peer id', () => {
  // use all of the test suits
  tests({
    setup () {
      return YourPeerIdFactory
    },
    teardown () {
      // Clean up any resources created by setup()
    }
  })
})

API Docs

License

Licensed under either of

Contribution

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.

@hoprnet/hoprd@hoprnet/hopr-core@everything-registry/sub-chunk-546interface-ipfs-corejs-wakuipns-didjs-chaintalk-utilsjs-libp2p-httpipfs-interopipfs-coreipfs-core-typesmt-libp2pmtcrawleemtxp2pchaintalk-libchaintalk-relaychaintalk-utils@dao-xyz/libp2p-webrtc@zkfs/storage-orbit-db@zalastax/nolb-_lib@veramo/libp2p-utils@veramo/libp2p-utils-browser@veramo/libp2p-client@waku/libp2p-utils@railgun-community/waku-relayer-client-node@railgun-community/waku-relayer-client-web@tracelabs/kad-dht@canvas-js/libp2p-okra-service@canvas-js/store@sarcophagus-org/sarcophagus-v2-sdk@sarcophagus-org/sarcophagus-v2-sdk-client@douganderson444/ipfs-core@helia/cli@helia/cli-utils@hoprnet/hopr-utils@hoprnet/hopr-core-ethereum@hoprnet/hopr-cover-traffic-daemon@hoprnet/hopr-connect@helia/rpc-server@dstanesc/ipfs-core-store-accessdaguladenetwork-libdenetwork-relaydenetwork-utils@eridanus-network/js-core.peer@drtc/bootstrap-node@drtc/create@drtc/interfaces@drtc/relay@drtc/relay-node@dcdn/graphsync@djack-sdk/network@djack-sdk/shared@futureverse/sylo-protocol-sdk@heirtrust/heirtrust-sdk@fluencelabs/js-peer@mithic/ipfs@libp2p/webrtc-star@libp2p/topology@libp2p/interface-connection@libp2p/interface-peer-info@libp2p/interface-peer-routing@libp2p/interface-peer-store@libp2p/interface-pubsub@libp2p/interface-pubsub-compliance-tests@libp2p/interface-record@libp2p/interface-registrar@libp2p/delegated-content-routing@libp2p/delegated-peer-routing@libp2p/interface-connection-encrypter@libp2p/interface-connection-encrypter-compliance-tests@libp2p/interface-connection-gater@libp2p/interface-connection-manager@libp2p/interface-dht@libp2p/interface-keychain@libp2p/interface-libp2p@libp2p/interface-mocks@libp2p/components@libp2p/connection@libp2p/metrics
2.0.2-5a9fb4d6

11 months ago

2.0.2-d2f1eff4

11 months ago

2.0.2-1c6702c8

11 months ago

2.0.2-3dfc236e

11 months ago

2.0.2-8c6b6d24

11 months ago

2.0.2

1 year ago

2.0.2-883082ca

11 months ago

2.0.2-ea8a0637

11 months ago

2.0.2-d853d124

11 months ago

2.0.2-ab0e3980

11 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.6

1 year ago

1.1.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.5

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago