@libp2p/interface-peer-id
Advanced tools
Comparing version 1.0.6 to 1.1.0
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; |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9817
63