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

@libp2p/interface-peer-id

Package Overview
Dependencies
Maintainers
6
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/interface-peer-id - npm Package Compare versions

Comparing version 1.0.6 to 1.1.0

5

dist/src/index.d.ts
import type { CID } from 'multiformats/cid';
import type { MultihashDigest } from 'multiformats/hashes/interface';
export type PeerIdType = 'RSA' | 'Ed25519' | 'secp256k1';
interface BasePeerId {
readonly type: 'RSA' | 'Ed25519' | 'secp256k1';
readonly type: PeerIdType;
readonly multihash: MultihashDigest;

@@ -25,3 +26,3 @@ readonly privateKey?: Uint8Array;

}
export declare type PeerId = RSAPeerId | Ed25519PeerId | Secp256k1PeerId;
export type PeerId = RSAPeerId | Ed25519PeerId | Secp256k1PeerId;
export declare const symbol: unique symbol;

@@ -28,0 +29,0 @@ export declare function isPeerId(other: any): other is PeerId;

2

package.json
{
"name": "@libp2p/interface-peer-id",
"version": "1.0.6",
"version": "1.1.0",
"description": "Peer Identifier interface for libp2p",

@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT",

import type { CID } from 'multiformats/cid'
import type { MultihashDigest } from 'multiformats/hashes/interface'
export type PeerIdType = 'RSA' | 'Ed25519' | 'secp256k1'
interface BasePeerId {
readonly type: 'RSA' | 'Ed25519' | 'secp256k1'
readonly type: PeerIdType
readonly multihash: MultihashDigest

@@ -7,0 +9,0 @@ readonly privateKey?: Uint8Array

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