Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@libp2p/peer-id

Package Overview
Dependencies
Maintainers
4
Versions
552
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/peer-id - npm Package Compare versions

Comparing version 1.1.11 to 1.1.12

4

dist/src/index.d.ts
import { CID } from 'multiformats/cid';
import { symbol } from '@libp2p/interfaces/peer-id';
import { symbol } from '@libp2p/interface-peer-id';
import type { MultibaseDecoder } from 'multiformats/bases/interface';
import type { MultihashDigest } from 'multiformats/hashes/interface';
import type { PeerId } from '@libp2p/interfaces/peer-id';
import type { PeerId } from '@libp2p/interface-peer-id';
interface PeerIdInit {

@@ -7,0 +7,0 @@ type: 'RSA' | 'Ed25519' | 'secp256k1';

@@ -9,3 +9,3 @@ import { CID } from 'multiformats/cid';

import errcode from 'err-code';
import { symbol } from '@libp2p/interfaces/peer-id';
import { symbol } from '@libp2p/interface-peer-id';
const baseDecoder = Object

@@ -12,0 +12,0 @@ .values(bases)

{
"name": "@libp2p/peer-id",
"version": "1.1.11",
"description": "IPFS Peer Id implementation in Node.js",
"version": "1.1.12",
"description": "Implementation of @libp2p/interface-peer-d",
"license": "Apache-2.0 OR MIT",
"homepage": "https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-peer-id#readme",
"homepage": "https://github.com/libp2p/js-libp2p-peer-id/tree/master/packages/libp2p-peer-id#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/libp2p/js-libp2p-interfaces.git"
"url": "git+https://github.com/libp2p/js-libp2p-peer-id.git"
},
"bugs": {
"url": "https://github.com/libp2p/js-libp2p-interfaces/issues"
"url": "https://github.com/libp2p/js-libp2p-peer-id/issues"
},

@@ -136,3 +136,3 @@ "keywords": [

"dependencies": {
"@libp2p/interfaces": "^2.0.0",
"@libp2p/interface-peer-id": "^0.0.1",
"err-code": "^3.0.1",

@@ -139,0 +139,0 @@ "multiformats": "^9.6.3",

@@ -1,18 +0,26 @@

# libp2p-peer-id <!-- omit in toc -->
# @libp2p/peer-id <!-- omit in toc -->
> peer-ids in JavaScript
[![test & maybe release](https://github.com/libp2p/js-libp2p-peer-id/actions/workflows/js-test-and-release.yml/badge.svg)](https://github.com/libp2p/js-libp2p-peer-id/actions/workflows/js-test-and-release.yml)
## Table of Contents <!-- omit in toc -->
> Implementation of @libp2p/interface-peer-d
## Table of contents <!-- omit in toc -->
- [Install](#install)
- [Description](#description)
- [Example](#example)
- [Installation](#installation)
- [License](#license)
- [Contribution](#contribution)
- [License](#license)
- [Contribution](#contribution)
# Description
## Install
```console
$ npm i @libp2p/peer-id
```
## Description
A basic implementation of a peer id
# Example
## Example

@@ -27,8 +35,2 @@ ```JavaScript

# Installation
```console
$ npm i libp2p-peer-id
```
## License

@@ -38,4 +40,4 @@

* Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / http://www.apache.org/licenses/LICENSE-2.0)
* MIT ([LICENSE-MIT](LICENSE-MIT) / http://opensource.org/licenses/MIT)
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

@@ -42,0 +44,0 @@ ### Contribution

@@ -9,6 +9,6 @@ import { CID } from 'multiformats/cid'

import errcode from 'err-code'
import { Ed25519PeerId, RSAPeerId, Secp256k1PeerId, symbol } from '@libp2p/interfaces/peer-id'
import { Ed25519PeerId, RSAPeerId, Secp256k1PeerId, symbol } from '@libp2p/interface-peer-id'
import type { MultibaseDecoder } from 'multiformats/bases/interface'
import type { MultihashDigest } from 'multiformats/hashes/interface'
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { PeerId } from '@libp2p/interface-peer-id'

@@ -15,0 +15,0 @@ const baseDecoder = Object

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc