@libp2p/interface 1.7.0 → 2.0.0-18dd3cb26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/index.min.js +1 -1
  2. package/dist/src/connection/index.d.ts +32 -8
  3. package/dist/src/connection/index.d.ts.map +1 -1
  4. package/dist/src/connection/index.js.map +1 -1
  5. package/dist/src/connection-encrypter/index.d.ts +11 -2
  6. package/dist/src/connection-encrypter/index.d.ts.map +1 -1
  7. package/dist/src/errors.d.ts +200 -25
  8. package/dist/src/errors.d.ts.map +1 -1
  9. package/dist/src/errors.js +280 -43
  10. package/dist/src/errors.js.map +1 -1
  11. package/dist/src/event-target.d.ts +0 -4
  12. package/dist/src/event-target.d.ts.map +1 -1
  13. package/dist/src/event-target.js +0 -1
  14. package/dist/src/event-target.js.map +1 -1
  15. package/dist/src/index.d.ts +12 -3
  16. package/dist/src/index.d.ts.map +1 -1
  17. package/dist/src/index.js.map +1 -1
  18. package/dist/src/keys/index.d.ts +85 -24
  19. package/dist/src/keys/index.d.ts.map +1 -1
  20. package/dist/src/keys/index.js +29 -3
  21. package/dist/src/keys/index.js.map +1 -1
  22. package/dist/src/metrics/index.d.ts +8 -8
  23. package/dist/src/metrics/index.d.ts.map +1 -1
  24. package/dist/src/peer-id/index.d.ts +120 -18
  25. package/dist/src/peer-id/index.d.ts.map +1 -1
  26. package/dist/src/peer-id/index.js +8 -1
  27. package/dist/src/peer-id/index.js.map +1 -1
  28. package/dist/src/peer-store/index.d.ts +5 -2
  29. package/dist/src/peer-store/index.d.ts.map +1 -1
  30. package/dist/src/pubsub/index.d.ts +2 -1
  31. package/dist/src/pubsub/index.d.ts.map +1 -1
  32. package/dist/src/pubsub/index.js.map +1 -1
  33. package/dist/src/record/index.d.ts +2 -2
  34. package/dist/src/record/index.d.ts.map +1 -1
  35. package/dist/src/stream-handler/index.d.ts +3 -3
  36. package/dist/src/stream-handler/index.d.ts.map +1 -1
  37. package/dist/src/topology/index.d.ts +4 -3
  38. package/dist/src/topology/index.d.ts.map +1 -1
  39. package/dist/src/transport/index.d.ts +3 -7
  40. package/dist/src/transport/index.d.ts.map +1 -1
  41. package/package.json +1 -1
  42. package/src/connection/index.ts +34 -8
  43. package/src/connection-encrypter/index.ts +12 -2
  44. package/src/errors.ts +320 -49
  45. package/src/event-target.ts +0 -2
  46. package/src/index.ts +12 -4
  47. package/src/keys/index.ts +112 -24
  48. package/src/metrics/index.ts +8 -8
  49. package/src/peer-id/index.ts +140 -19
  50. package/src/peer-store/index.ts +5 -2
  51. package/src/pubsub/index.ts +2 -1
  52. package/src/record/index.ts +2 -2
  53. package/src/stream-handler/index.ts +3 -3
  54. package/src/topology/index.ts +4 -3
  55. package/src/transport/index.ts +3 -8
  56. package/dist/typedoc-urls.json +0 -175
@@ -1,42 +1,163 @@
1
- import type { KeyType } from '../keys/index.js'
1
+ import type { Ed25519PublicKey, KeyType, RSAPublicKey, Secp256k1PublicKey } from '../keys/index.js'
2
2
  import type { CID } from 'multiformats/cid'
3
3
  import type { MultihashDigest } from 'multiformats/hashes/interface'
4
4
 
5
5
  export type PeerIdType = KeyType | string
6
6
 
7
- export interface RSAPeerId extends PeerId {
7
+ /**
8
+ * A PeerId generated from an RSA public key - it is a base58btc encoded sha-256
9
+ * hash of the public key.
10
+ *
11
+ * RSA public keys are too large to pass around freely, instead Ed25519 or
12
+ * secp256k1 should be preferred as they can embed their public key in the
13
+ * PeerId itself.
14
+ *
15
+ * @deprecated Ed25519 or secp256k1 keys are preferred to RSA
16
+ */
17
+ export interface RSAPeerId {
8
18
  readonly type: 'RSA'
9
- readonly publicKey?: Uint8Array
19
+
20
+ /**
21
+ * RSA public keys are too large to embed in the multihash commonly used to
22
+ * refer to peers, so this will only be defined if the public key has
23
+ * previously been found through a routing query or during normal protocol
24
+ * operations
25
+ */
26
+ readonly publicKey?: RSAPublicKey
27
+
28
+ /**
29
+ * Returns the multihash from `toMultihash()` as a base58btc encoded string
30
+ */
31
+ toString(): string
32
+
33
+ /**
34
+ * Returns a multihash, the digest of which is the SHA2-256 hash of the public
35
+ * key
36
+ */
37
+ toMultihash(): MultihashDigest<0x12>
38
+
39
+ /**
40
+ * Returns a CID with the libp2p key code and the same multihash as
41
+ * `toMultihash()`
42
+ */
43
+ toCID(): CID<Uint8Array, 0x72, 0x12, 1>
44
+
45
+ /**
46
+ * Returns true if the passed argument is equivalent to this PeerId
47
+ */
48
+ equals(other?: any): boolean
10
49
  }
11
50
 
12
- export interface Ed25519PeerId extends PeerId {
51
+ export interface Ed25519PeerId {
13
52
  readonly type: 'Ed25519'
14
- readonly publicKey: Uint8Array
53
+
54
+ /**
55
+ * This will always be defined as the public key is embedded in the multihash
56
+ * of this PeerId
57
+ */
58
+ readonly publicKey: Ed25519PublicKey
59
+
60
+ /**
61
+ * Returns the multihash from `toMultihash()` as a base58btc encoded string
62
+ */
63
+ toString(): string
64
+
65
+ /**
66
+ * Returns a multihash, the digest of which is the protobuf-encoded public key
67
+ * encoded as an identity hash
68
+ */
69
+ toMultihash(): MultihashDigest<0x0>
70
+
71
+ /**
72
+ * Returns a CID with the libp2p key code and the same multihash as
73
+ * `toMultihash()`
74
+ */
75
+ toCID(): CID<Uint8Array, 0x72, 0x0, 1>
76
+
77
+ /**
78
+ * Returns true if the passed argument is equivalent to this PeerId
79
+ */
80
+ equals(other?: any): boolean
15
81
  }
16
82
 
17
- export interface Secp256k1PeerId extends PeerId {
83
+ export interface Secp256k1PeerId {
18
84
  readonly type: 'secp256k1'
19
- readonly publicKey: Uint8Array
85
+
86
+ /**
87
+ * This will always be defined as the public key is embedded in the multihash
88
+ * of this PeerId
89
+ */
90
+ readonly publicKey: Secp256k1PublicKey
91
+
92
+ /**
93
+ * Returns the multihash from `toMultihash()` as a base58btc encoded string
94
+ */
95
+ toString(): string
96
+
97
+ /**
98
+ * Returns a multihash, the digest of which is the protobuf-encoded public key
99
+ * encoded as an identity hash
100
+ */
101
+ toMultihash(): MultihashDigest<0x0>
102
+
103
+ /**
104
+ * Returns a CID with the libp2p key code and the same multihash as
105
+ * `toMultihash()`
106
+ */
107
+ toCID(): CID<Uint8Array, 0x72, 0x0, 1>
108
+
109
+ /**
110
+ * Returns true if the passed argument is equivalent to this PeerId
111
+ */
112
+ equals(other?: any): boolean
20
113
  }
21
114
 
22
- export interface URLPeerId extends PeerId {
115
+ export interface URLPeerId {
23
116
  readonly type: 'url'
24
- }
25
117
 
26
- export interface PeerId {
27
- type: PeerIdType
28
- multihash: MultihashDigest
29
- privateKey?: Uint8Array
30
- publicKey?: Uint8Array
118
+ /**
119
+ * This will always be undefined as URL Peers do not have public keys
120
+ */
121
+ readonly publicKey: undefined
31
122
 
123
+ /**
124
+ * Returns CID from `toCID()` encoded as a base36 string
125
+ */
32
126
  toString(): string
33
- toCID(): CID
34
- toBytes(): Uint8Array
35
- equals(other?: PeerId | Uint8Array | string): boolean
127
+
128
+ /**
129
+ * Returns a multihash, the digest of which is the URL encoded as an identity
130
+ * hash
131
+ */
132
+ toMultihash(): MultihashDigest<0x0>
133
+
134
+ /**
135
+ * Returns a CID with the Transport IPFS Gateway HTTP code and the same
136
+ * multihash as `toMultihash()`
137
+ */
138
+ toCID(): CID<Uint8Array, 0x0920, 0x0, 1>
139
+
140
+ /**
141
+ * Returns true if the passed argument is equivalent to this PeerId
142
+ */
143
+ equals(other?: any): boolean
36
144
  }
37
145
 
146
+ /**
147
+ * This is a union of all known PeerId types - use the `.type` field to
148
+ * disambiguate them
149
+ */
150
+ export type PeerId = RSAPeerId | Ed25519PeerId | Secp256k1PeerId | URLPeerId
151
+
152
+ /**
153
+ * All PeerId implementations must use this symbol as the name of a property
154
+ * with a boolean `true` value
155
+ */
38
156
  export const peerIdSymbol = Symbol.for('@libp2p/peer-id')
39
157
 
40
- export function isPeerId (other: any): other is PeerId {
41
- return other != null && Boolean(other[peerIdSymbol])
158
+ /**
159
+ * Returns true if the passed argument is a PeerId implementation
160
+ */
161
+ export function isPeerId (other?: any): other is PeerId {
162
+ return Boolean(other?.[peerIdSymbol])
42
163
  }
@@ -1,3 +1,4 @@
1
+ import type { PublicKey } from '../keys/index.js'
1
2
  import type { PeerId } from '../peer-id/index.js'
2
3
  import type { Multiaddr } from '@multiformats/multiaddr'
3
4
 
@@ -91,9 +92,11 @@ export interface PeerData {
91
92
  tags?: Map<string, TagOptions | undefined> | Record<string, TagOptions | undefined>
92
93
 
93
94
  /**
94
- * If this Peer has an RSA key, it's public key can be set with this property
95
+ * If this Peer has an RSA key, it's public key can be set with this property.
96
+ *
97
+ * The byte array should be the protobuf encoded form of the public key.
95
98
  */
96
- publicKey?: Uint8Array
99
+ publicKey?: PublicKey
97
100
 
98
101
  /**
99
102
  * The last peer record envelope received
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from '../connection/index.js'
2
2
  import type { TypedEventTarget } from '../event-target.js'
3
+ import type { PublicKey } from '../keys/index.js'
3
4
  import type { PeerId } from '../peer-id/index.js'
4
5
  import type { Pushable } from 'it-pushable'
5
6
  import type { Uint8ArrayList } from 'uint8arraylist'
@@ -35,7 +36,7 @@ export interface SignedMessage {
35
36
  data: Uint8Array
36
37
  sequenceNumber: bigint
37
38
  signature: Uint8Array
38
- key: Uint8Array
39
+ key: PublicKey
39
40
  }
40
41
 
41
42
  export interface UnsignedMessage {
@@ -1,4 +1,4 @@
1
- import type { PeerId } from '../peer-id/index.js'
1
+ import type { PublicKey } from '../keys/index.js'
2
2
  import type { Uint8ArrayList } from 'uint8arraylist'
3
3
 
4
4
  /**
@@ -24,7 +24,7 @@ export interface Record {
24
24
  }
25
25
 
26
26
  export interface Envelope {
27
- peerId: PeerId
27
+ publicKey: PublicKey
28
28
  payloadType: Uint8Array | Uint8ArrayList
29
29
  payload: Uint8Array
30
30
  signature: Uint8Array | Uint8ArrayList
@@ -21,10 +21,10 @@ export interface StreamHandlerOptions {
21
21
  maxOutboundStreams?: number
22
22
 
23
23
  /**
24
- * Opt-in to running over a transient connection - one that has time/data limits
25
- * placed on it.
24
+ * Opt-in to running over connections with limits on how much data can be
25
+ * transferred or how long it can be open for.
26
26
  */
27
- runOnTransientConnection?: boolean
27
+ runOnLimitedConnection?: boolean
28
28
  }
29
29
 
30
30
  export interface StreamHandlerRecord {
@@ -27,12 +27,13 @@ export interface Topology {
27
27
  filter?: TopologyFilter
28
28
 
29
29
  /**
30
- * If true, invoke `onConnect` for this topology on transient (e.g. short-lived
31
- * and/or data-limited) connections
30
+ * If true, invoke `onConnect` for this topology on limited connections, e.g.
31
+ * ones with limits on how much data can be transferred or how long they can
32
+ * be open for.
32
33
  *
33
34
  * @default false
34
35
  */
35
- notifyOnTransient?: boolean
36
+ notifyOnLimitedConnection?: boolean
36
37
 
37
38
  /**
38
39
  * Invoked when a new connection is opened to a peer that supports the
@@ -1,4 +1,4 @@
1
- import type { Connection, MultiaddrConnection } from '../connection/index.js'
1
+ import type { Connection, ConnectionLimits, MultiaddrConnection } from '../connection/index.js'
2
2
  import type { TypedEventTarget } from '../event-target.js'
3
3
  import type { AbortOptions } from '../index.js'
4
4
  import type { StreamMuxerFactory } from '../stream-muxer/index.js'
@@ -100,16 +100,11 @@ export enum FaultTolerance {
100
100
  NO_FATAL
101
101
  }
102
102
 
103
- export interface UpgraderOptions<ConnectionUpgradeEvents extends ProgressEvent = ProgressEvent> extends ProgressOptions<ConnectionUpgradeEvents> {
103
+ export interface UpgraderOptions<ConnectionUpgradeEvents extends ProgressEvent = ProgressEvent> extends ProgressOptions<ConnectionUpgradeEvents>, AbortOptions {
104
104
  skipEncryption?: boolean
105
105
  skipProtection?: boolean
106
106
  muxerFactory?: StreamMuxerFactory
107
-
108
- /**
109
- * The passed MultiaddrConnection has limits place on duration and/or data
110
- * transfer amounts so is not expected to be open for very long.
111
- */
112
- transient?: boolean
107
+ limits?: ConnectionLimits
113
108
  }
114
109
 
115
110
  export type InboundConnectionUpgradeEvents =
@@ -1,175 +0,0 @@
1
- {
2
- "KeyTypes": "https://libp2p.github.io/js-libp2p/types/_libp2p_crypto.keys.KeyTypes.html",
3
- "FaultTolerance": "https://libp2p.github.io/js-libp2p/enums/_libp2p_interface.FaultTolerance.html",
4
- "TopicValidatorResult": "https://libp2p.github.io/js-libp2p/enums/_libp2p_interface.TopicValidatorResult.html",
5
- "AbortError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.AbortError.html",
6
- "AggregateCodeError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.AggregateCodeError.html",
7
- "CodeError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.CodeError.html",
8
- "InvalidCryptoExchangeError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.InvalidCryptoExchangeError.html",
9
- "InvalidCryptoTransmissionError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.InvalidCryptoTransmissionError.html",
10
- "TypedEventEmitter": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.TypedEventEmitter.html",
11
- "UnexpectedPeerError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.UnexpectedPeerError.html",
12
- "AbortOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.AbortOptions.html",
13
- ".:AbortOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.AbortOptions.html",
14
- "Address": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Address.html",
15
- "AddressSorter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.AddressSorter.html",
16
- ".:AddressSorter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.AddressSorter.html",
17
- "CalculatedMetricOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.CalculatedMetricOptions.html",
18
- "ComponentLogger": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ComponentLogger.html",
19
- ".:ComponentLogger": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ComponentLogger.html",
20
- "Connection": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Connection.html",
21
- "ConnectionEncrypter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionEncrypter.html",
22
- "ConnectionGater": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionGater.html",
23
- "ConnectionHandler": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionHandler.html",
24
- "ConnectionProtector": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionProtector.html",
25
- "ConnectionTimeline": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionTimeline.html",
26
- "ContentRouting": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ContentRouting.html",
27
- "ContentRoutingProvider": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ContentRoutingProvider.html",
28
- "Counter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Counter.html",
29
- "CounterGroup": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.CounterGroup.html",
30
- "CreateListenerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.CreateListenerOptions.html",
31
- "DialOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.DialOptions.html",
32
- ".:DialOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.DialOptions.html",
33
- "DialProtocolOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.DialProtocolOptions.html",
34
- ".:DialProtocolOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.DialProtocolOptions.html",
35
- "DialTransportOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.DialTransportOptions.html",
36
- "Ed25519PeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Ed25519PeerId.html",
37
- "Envelope": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Envelope.html",
38
- "EventCallback": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.EventCallback.html",
39
- "EventObject": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.EventObject.html",
40
- "IdentifyResult": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.IdentifyResult.html",
41
- ".:IdentifyResult": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.IdentifyResult.html",
42
- "IncomingStreamData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.IncomingStreamData.html",
43
- "IsDialableOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.IsDialableOptions.html",
44
- ".:IsDialableOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.IsDialableOptions.html",
45
- "Libp2p": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Libp2p.html",
46
- ".:Libp2p": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.index.Libp2p.html",
47
- "Libp2pEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Libp2pEvents.html",
48
- ".:Libp2pEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Libp2pEvents.html",
49
- "Listener": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Listener.html",
50
- "ListenerEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ListenerEvents.html",
51
- "Logger": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Logger.html",
52
- ".:Logger": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Logger.html",
53
- "LoggerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.LoggerOptions.html",
54
- ".:LoggerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.LoggerOptions.html",
55
- "Metric": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Metric.html",
56
- "MetricGroup": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MetricGroup.html",
57
- "MetricOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MetricOptions.html",
58
- "Metrics": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Metrics.html",
59
- "MultiaddrConnection": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrConnection.html",
60
- "MultiaddrConnectionTimeline": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrConnectionTimeline.html",
61
- "MultiaddrFilter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrFilter.html",
62
- "NewStreamOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.NewStreamOptions.html",
63
- "NodeInfo": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.NodeInfo.html",
64
- ".:NodeInfo": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.NodeInfo.html",
65
- "Peer": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Peer.html",
66
- "PeerData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerData.html",
67
- "PeerDiscovery": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerDiscovery.html",
68
- "PeerDiscoveryEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerDiscoveryEvents.html",
69
- "PeerDiscoveryProvider": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerDiscoveryProvider.html",
70
- "PeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerId.html",
71
- "PeerInfo": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerInfo.html",
72
- "PeerQuery": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerQuery.html",
73
- "PeerQueryFilter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerQueryFilter.html",
74
- "PeerQueryOrder": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerQueryOrder.html",
75
- "PeerRouting": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerRouting.html",
76
- "PeerRoutingProvider": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerRoutingProvider.html",
77
- "PeerStore": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerStore.html",
78
- "PeerStreamEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerStreamEvents.html",
79
- "PeerStreams": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerStreams.html",
80
- "PeerUpdate": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerUpdate.html",
81
- ".:PeerUpdate": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerUpdate.html",
82
- "PendingDial": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PendingDial.html",
83
- ".:PendingDial": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PendingDial.html",
84
- "PrivateKey": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PrivateKey.html",
85
- "PubSub": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSub.html",
86
- "PubSubEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubEvents.html",
87
- "PubSubInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubInit.html",
88
- "PubSubRPC": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubRPC.html",
89
- "PubSubRPCMessage": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubRPCMessage.html",
90
- "PubSubRPCSubscription": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubRPCSubscription.html",
91
- "PublicKey": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PublicKey.html",
92
- "PublishResult": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PublishResult.html",
93
- "RSAPeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.RSAPeerId.html",
94
- "Record": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Record.html",
95
- "RoutingOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.RoutingOptions.html",
96
- ".:RoutingOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.RoutingOptions.html",
97
- "Secp256k1PeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Secp256k1PeerId.html",
98
- "SecuredConnection": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SecuredConnection.html",
99
- "SignedMessage": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SignedMessage.html",
100
- "SignedPeerRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SignedPeerRecord.html",
101
- ".:SignedPeerRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SignedPeerRecord.html",
102
- "Startable": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Startable.html",
103
- "StopTimer": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StopTimer.html",
104
- "Stream": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Stream.html",
105
- "StreamHandler": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamHandler.html",
106
- "StreamHandlerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamHandlerOptions.html",
107
- "StreamHandlerRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamHandlerRecord.html",
108
- "StreamMuxer": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamMuxer.html",
109
- "StreamMuxerFactory": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamMuxerFactory.html",
110
- "StreamMuxerInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamMuxerInit.html",
111
- "StreamTimeline": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamTimeline.html",
112
- "SubscriptionChangeData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SubscriptionChangeData.html",
113
- "Tag": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Tag.html",
114
- "TagOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TagOptions.html",
115
- "TopicValidatorFn": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TopicValidatorFn.html",
116
- "Topology": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Topology.html",
117
- "TopologyFilter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TopologyFilter.html",
118
- "Transport": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Transport.html",
119
- "TypedEventTarget": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TypedEventTarget.html",
120
- "URLPeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.URLPeerId.html",
121
- "UnsignedMessage": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.UnsignedMessage.html",
122
- "Upgrader": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Upgrader.html",
123
- "UpgraderOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.UpgraderOptions.html",
124
- "CalculateMetric": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.CalculateMetric.html",
125
- "ConnectionStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.ConnectionStatus.html",
126
- "Direction": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.Direction.html",
127
- "EventHandler": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.EventHandler.html",
128
- "InboundConnectionUpgradeEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.InboundConnectionUpgradeEvents.html",
129
- "KeyType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.KeyType.html",
130
- "Libp2pStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.Libp2pStatus.html",
131
- ".:Libp2pStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.Libp2pStatus.html",
132
- "Message": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.Message.html",
133
- "OpenConnectionProgressEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.OpenConnectionProgressEvents.html",
134
- ".:OpenConnectionProgressEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.OpenConnectionProgressEvents.html",
135
- "OutboundConnectionUpgradeEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.OutboundConnectionUpgradeEvents.html",
136
- "PeerIdType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PeerIdType.html",
137
- "PendingDialStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PendingDialStatus.html",
138
- ".:PendingDialStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PendingDialStatus.html",
139
- "ReadStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.ReadStatus.html",
140
- "ServiceMap": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.ServiceMap.html",
141
- ".:ServiceMap": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.ServiceMap.html",
142
- "SignaturePolicy": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.SignaturePolicy.html",
143
- "StreamStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.StreamStatus.html",
144
- "TransportManagerDialProgressEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.TransportManagerDialProgressEvents.html",
145
- ".:TransportManagerDialProgressEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.TransportManagerDialProgressEvents.html",
146
- "WriteStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.WriteStatus.html",
147
- "CustomEvent": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.CustomEvent.html",
148
- "ERR_INVALID_MESSAGE": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.ERR_INVALID_MESSAGE.html",
149
- "ERR_INVALID_PARAMETERS": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.ERR_INVALID_PARAMETERS.html",
150
- "ERR_NOT_FOUND": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.ERR_NOT_FOUND.html",
151
- "ERR_TIMEOUT": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.ERR_TIMEOUT.html",
152
- "Ed25519": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.Ed25519.html",
153
- "KEEP_ALIVE": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.KEEP_ALIVE.html",
154
- "RSA": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.RSA.html",
155
- "StrictNoSign": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.StrictNoSign.html",
156
- "StrictSign": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.StrictSign.html",
157
- "connectionSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.connectionSymbol.html",
158
- "contentRoutingSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.contentRoutingSymbol.html",
159
- "peerDiscoverySymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.peerDiscoverySymbol.html",
160
- "peerIdSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.peerIdSymbol.html",
161
- "peerRoutingSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.peerRoutingSymbol.html",
162
- "secp256k1": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.secp256k1.html",
163
- "serviceCapabilities": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.serviceCapabilities.html",
164
- ".:serviceCapabilities": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.serviceCapabilities.html",
165
- "serviceDependencies": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.serviceDependencies.html",
166
- ".:serviceDependencies": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.serviceDependencies.html",
167
- "transportSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.transportSymbol.html",
168
- "isConnection": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isConnection.html",
169
- "isPeerId": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isPeerId.html",
170
- "isStartable": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isStartable.html",
171
- "isTransport": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isTransport.html",
172
- "setMaxListeners": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.setMaxListeners.html",
173
- "start": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.start.html",
174
- "stop": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.stop.html"
175
- }