libp2p 0.44.0 → 0.45.0-08d4c261
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.
- package/dist/index.min.js +32 -32
- package/dist/src/address-manager/index.d.ts +9 -5
- package/dist/src/address-manager/index.d.ts.map +1 -1
- package/dist/src/address-manager/index.js +44 -7
- package/dist/src/address-manager/index.js.map +1 -1
- package/dist/src/address-manager/utils.d.ts +2 -0
- package/dist/src/address-manager/utils.d.ts.map +1 -0
- package/dist/src/address-manager/utils.js +12 -0
- package/dist/src/address-manager/utils.js.map +1 -0
- package/dist/src/autonat/constants.d.ts +16 -2
- package/dist/src/autonat/constants.d.ts.map +1 -1
- package/dist/src/autonat/constants.js +16 -2
- package/dist/src/autonat/constants.js.map +1 -1
- package/dist/src/autonat/index.d.ts +12 -33
- package/dist/src/autonat/index.d.ts.map +1 -1
- package/dist/src/autonat/index.js +48 -33
- package/dist/src/autonat/index.js.map +1 -1
- package/dist/src/circuit-relay/index.d.ts +1 -1
- package/dist/src/circuit-relay/index.d.ts.map +1 -1
- package/dist/src/circuit-relay/server/advert-service.d.ts +2 -2
- package/dist/src/circuit-relay/server/advert-service.d.ts.map +1 -1
- package/dist/src/circuit-relay/server/advert-service.js +8 -4
- package/dist/src/circuit-relay/server/advert-service.js.map +1 -1
- package/dist/src/circuit-relay/server/index.d.ts +8 -8
- package/dist/src/circuit-relay/server/index.d.ts.map +1 -1
- package/dist/src/circuit-relay/server/index.js +32 -12
- package/dist/src/circuit-relay/server/index.js.map +1 -1
- package/dist/src/circuit-relay/server/reservation-store.d.ts +5 -5
- package/dist/src/circuit-relay/server/reservation-store.d.ts.map +1 -1
- package/dist/src/circuit-relay/server/reservation-store.js +10 -3
- package/dist/src/circuit-relay/server/reservation-store.js.map +1 -1
- package/dist/src/circuit-relay/server/reservation-voucher.d.ts.map +1 -1
- package/dist/src/circuit-relay/server/reservation-voucher.js +5 -2
- package/dist/src/circuit-relay/server/reservation-voucher.js.map +1 -1
- package/dist/src/circuit-relay/transport/discovery.d.ts +4 -4
- package/dist/src/circuit-relay/transport/discovery.d.ts.map +1 -1
- package/dist/src/circuit-relay/transport/discovery.js +13 -5
- package/dist/src/circuit-relay/transport/discovery.js.map +1 -1
- package/dist/src/circuit-relay/transport/index.d.ts +10 -8
- package/dist/src/circuit-relay/transport/index.d.ts.map +1 -1
- package/dist/src/circuit-relay/transport/index.js +26 -18
- package/dist/src/circuit-relay/transport/index.js.map +1 -1
- package/dist/src/circuit-relay/transport/listener.d.ts +1 -1
- package/dist/src/circuit-relay/transport/listener.d.ts.map +1 -1
- package/dist/src/circuit-relay/transport/listener.js +43 -43
- package/dist/src/circuit-relay/transport/listener.js.map +1 -1
- package/dist/src/circuit-relay/transport/reservation-store.d.ts +8 -7
- package/dist/src/circuit-relay/transport/reservation-store.d.ts.map +1 -1
- package/dist/src/circuit-relay/transport/reservation-store.js +65 -52
- package/dist/src/circuit-relay/transport/reservation-store.js.map +1 -1
- package/dist/src/circuit-relay/utils.d.ts.map +1 -1
- package/dist/src/circuit-relay/utils.js +3 -3
- package/dist/src/circuit-relay/utils.js.map +1 -1
- package/dist/src/components.d.ts +10 -67
- package/dist/src/components.d.ts.map +1 -1
- package/dist/src/components.js +61 -165
- package/dist/src/components.js.map +1 -1
- package/dist/src/config/connection-gater.browser.d.ts +8 -0
- package/dist/src/config/connection-gater.browser.d.ts.map +1 -0
- package/dist/src/config/connection-gater.browser.js +27 -0
- package/dist/src/config/connection-gater.browser.js.map +1 -0
- package/dist/src/config/connection-gater.d.ts +6 -0
- package/dist/src/config/connection-gater.d.ts.map +1 -0
- package/dist/src/config/connection-gater.js +18 -0
- package/dist/src/config/connection-gater.js.map +1 -0
- package/dist/src/config.d.ts +2 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +4 -66
- package/dist/src/config.js.map +1 -1
- package/dist/src/connection/index.d.ts +3 -3
- package/dist/src/connection/index.d.ts.map +1 -1
- package/dist/src/connection/index.js +38 -8
- package/dist/src/connection/index.js.map +1 -1
- package/dist/src/connection-manager/auto-dial.d.ts +4 -1
- package/dist/src/connection-manager/auto-dial.d.ts.map +1 -1
- package/dist/src/connection-manager/auto-dial.js +44 -13
- package/dist/src/connection-manager/auto-dial.js.map +1 -1
- package/dist/src/connection-manager/connection-pruner.d.ts +4 -0
- package/dist/src/connection-manager/connection-pruner.d.ts.map +1 -1
- package/dist/src/connection-manager/connection-pruner.js +28 -8
- package/dist/src/connection-manager/connection-pruner.js.map +1 -1
- package/dist/src/connection-manager/dial-queue.d.ts +7 -6
- package/dist/src/connection-manager/dial-queue.d.ts.map +1 -1
- package/dist/src/connection-manager/dial-queue.js +59 -23
- package/dist/src/connection-manager/dial-queue.js.map +1 -1
- package/dist/src/connection-manager/index.d.ts +16 -15
- package/dist/src/connection-manager/index.d.ts.map +1 -1
- package/dist/src/connection-manager/index.js +44 -41
- package/dist/src/connection-manager/index.js.map +1 -1
- package/dist/src/connection-manager/utils.d.ts +2 -3
- package/dist/src/connection-manager/utils.d.ts.map +1 -1
- package/dist/src/connection-manager/utils.js +3 -3
- package/dist/src/connection-manager/utils.js.map +1 -1
- package/dist/src/content-routing/index.d.ts +2 -12
- package/dist/src/content-routing/index.d.ts.map +1 -1
- package/dist/src/content-routing/index.js +12 -44
- package/dist/src/content-routing/index.js.map +1 -1
- package/dist/src/content-routing/utils.d.ts +1 -1
- package/dist/src/content-routing/utils.d.ts.map +1 -1
- package/dist/src/content-routing/utils.js +3 -1
- package/dist/src/content-routing/utils.js.map +1 -1
- package/dist/src/fetch/index.d.ts +15 -37
- package/dist/src/fetch/index.d.ts.map +1 -1
- package/dist/src/fetch/index.js +19 -16
- package/dist/src/fetch/index.js.map +1 -1
- package/dist/src/get-peer.d.ts +1 -1
- package/dist/src/get-peer.d.ts.map +1 -1
- package/dist/src/get-peer.js +3 -3
- package/dist/src/get-peer.js.map +1 -1
- package/dist/src/identify/identify.d.ts +53 -0
- package/dist/src/identify/identify.d.ts.map +1 -0
- package/dist/src/identify/identify.js +417 -0
- package/dist/src/identify/identify.js.map +1 -0
- package/dist/src/identify/index.d.ts +14 -59
- package/dist/src/identify/index.d.ts.map +1 -1
- package/dist/src/identify/index.js +5 -388
- package/dist/src/identify/index.js.map +1 -1
- package/dist/src/index.d.ts +28 -79
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/insecure/index.js +6 -8
- package/dist/src/insecure/index.js.map +1 -1
- package/dist/src/libp2p.d.ts +16 -47
- package/dist/src/libp2p.d.ts.map +1 -1
- package/dist/src/libp2p.js +141 -201
- package/dist/src/libp2p.js.map +1 -1
- package/dist/src/peer-routing.d.ts +3 -40
- package/dist/src/peer-routing.d.ts.map +1 -1
- package/dist/src/peer-routing.js +8 -65
- package/dist/src/peer-routing.js.map +1 -1
- package/dist/src/ping/constants.d.ts +4 -0
- package/dist/src/ping/constants.d.ts.map +1 -1
- package/dist/src/ping/constants.js +10 -0
- package/dist/src/ping/constants.js.map +1 -1
- package/dist/src/ping/index.d.ts +11 -28
- package/dist/src/ping/index.d.ts.map +1 -1
- package/dist/src/ping/index.js +31 -28
- package/dist/src/ping/index.js.map +1 -1
- package/dist/src/pnet/crypto.js +3 -3
- package/dist/src/pnet/crypto.js.map +1 -1
- package/dist/src/pnet/index.d.ts.map +1 -1
- package/dist/src/pnet/index.js +9 -6
- package/dist/src/pnet/index.js.map +1 -1
- package/dist/src/pnet/key-generator.js +1 -1
- package/dist/src/pnet/key-generator.js.map +1 -1
- package/dist/src/pubsub/dummy-pubsub.d.ts.map +1 -1
- package/dist/src/pubsub/dummy-pubsub.js +2 -5
- package/dist/src/pubsub/dummy-pubsub.js.map +1 -1
- package/dist/src/registrar.d.ts +6 -4
- package/dist/src/registrar.d.ts.map +1 -1
- package/dist/src/registrar.js +33 -28
- package/dist/src/registrar.js.map +1 -1
- package/dist/src/transport-manager.d.ts +14 -7
- package/dist/src/transport-manager.d.ts.map +1 -1
- package/dist/src/transport-manager.js +27 -13
- package/dist/src/transport-manager.js.map +1 -1
- package/dist/src/upgrader.d.ts +20 -15
- package/dist/src/upgrader.d.ts.map +1 -1
- package/dist/src/upgrader.js +49 -53
- package/dist/src/upgrader.js.map +1 -1
- package/dist/src/{nat-manager.d.ts → upnp-nat/index.d.ts} +12 -15
- package/dist/src/upnp-nat/index.d.ts.map +1 -0
- package/dist/src/{nat-manager.js → upnp-nat/index.js} +23 -10
- package/dist/src/upnp-nat/index.js.map +1 -0
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.d.ts.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/package.json +62 -47
- package/src/address-manager/index.ts +52 -10
- package/src/address-manager/utils.ts +14 -0
- package/src/autonat/constants.ts +17 -2
- package/src/autonat/index.ts +65 -57
- package/src/circuit-relay/index.ts +1 -1
- package/src/circuit-relay/server/advert-service.ts +5 -5
- package/src/circuit-relay/server/index.ts +28 -20
- package/src/circuit-relay/server/reservation-store.ts +5 -5
- package/src/circuit-relay/server/reservation-voucher.ts +1 -1
- package/src/circuit-relay/transport/discovery.ts +12 -10
- package/src/circuit-relay/transport/index.ts +26 -26
- package/src/circuit-relay/transport/listener.ts +43 -33
- package/src/circuit-relay/transport/reservation-store.ts +42 -28
- package/src/circuit-relay/utils.ts +6 -6
- package/src/components.ts +75 -238
- package/src/config/connection-gater.browser.ts +31 -0
- package/src/config/connection-gater.ts +19 -0
- package/src/config.ts +9 -70
- package/src/connection/index.ts +6 -10
- package/src/connection-manager/auto-dial.ts +46 -17
- package/src/connection-manager/connection-pruner.ts +30 -10
- package/src/connection-manager/dial-queue.ts +56 -35
- package/src/connection-manager/index.ts +45 -57
- package/src/connection-manager/utils.ts +4 -5
- package/src/content-routing/index.ts +11 -59
- package/src/content-routing/utils.ts +4 -2
- package/src/fetch/index.ts +63 -26
- package/src/get-peer.ts +4 -4
- package/src/identify/identify.ts +519 -0
- package/src/identify/index.ts +19 -509
- package/src/index.ts +25 -88
- package/src/insecure/index.ts +10 -10
- package/src/libp2p.ts +158 -279
- package/src/peer-routing.ts +10 -110
- package/src/ping/constants.ts +11 -0
- package/src/ping/index.ts +43 -39
- package/src/pnet/crypto.ts +3 -3
- package/src/pnet/index.ts +6 -6
- package/src/pnet/key-generator.ts +1 -1
- package/src/pubsub/dummy-pubsub.ts +2 -2
- package/src/registrar.ts +34 -31
- package/src/transport-manager.ts +33 -19
- package/src/upgrader.ts +75 -71
- package/src/{nat-manager.ts → upnp-nat/index.ts} +23 -24
- package/src/version.ts +1 -1
- package/dist/src/dht/dht-content-routing.d.ts +0 -17
- package/dist/src/dht/dht-content-routing.d.ts.map +0 -1
- package/dist/src/dht/dht-content-routing.js +0 -32
- package/dist/src/dht/dht-content-routing.js.map +0 -1
- package/dist/src/dht/dht-peer-routing.d.ts +0 -15
- package/dist/src/dht/dht-peer-routing.d.ts.map +0 -1
- package/dist/src/dht/dht-peer-routing.js +0 -26
- package/dist/src/dht/dht-peer-routing.js.map +0 -1
- package/dist/src/dht/dummy-dht.d.ts +0 -20
- package/dist/src/dht/dummy-dht.d.ts.map +0 -1
- package/dist/src/dht/dummy-dht.js +0 -46
- package/dist/src/dht/dummy-dht.js.map +0 -1
- package/dist/src/nat-manager.d.ts.map +0 -1
- package/dist/src/nat-manager.js.map +0 -1
- package/dist/src/peer-record-updater.d.ts +0 -24
- package/dist/src/peer-record-updater.d.ts.map +0 -1
- package/dist/src/peer-record-updater.js +0 -44
- package/dist/src/peer-record-updater.js.map +0 -1
- package/dist/typedoc-urls.json +0 -41
- package/src/dht/dht-content-routing.ts +0 -44
- package/src/dht/dht-peer-routing.ts +0 -36
- package/src/dht/dummy-dht.ts +0 -60
- package/src/peer-record-updater.ts +0 -65
package/dist/src/index.d.ts
CHANGED
|
@@ -13,39 +13,34 @@
|
|
|
13
13
|
* })
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
|
-
import type {
|
|
16
|
+
import type { AddressManagerInit } from './address-manager/index.js';
|
|
17
|
+
import type { Components } from './components.js';
|
|
18
|
+
import type { ConnectionManagerInit } from './connection-manager/index.js';
|
|
17
19
|
import type { TransportManagerInit } from './transport-manager.js';
|
|
18
|
-
import type { IdentifyServiceInit } from './identify/index.js';
|
|
19
|
-
import type { DualDHT } from '@libp2p/interface-dht';
|
|
20
|
-
import type { Datastore } from 'interface-datastore';
|
|
21
|
-
import type { PeerStoreInit } from '@libp2p/interface-peer-store';
|
|
22
|
-
import type { PeerId } from '@libp2p/interface-peer-id';
|
|
23
|
-
import type { PeerDiscovery } from '@libp2p/interface-peer-discovery';
|
|
24
20
|
import type { ConnectionProtector } from '@libp2p/interface-connection';
|
|
25
|
-
import type { ConnectionGater } from '@libp2p/interface-connection-gater';
|
|
26
|
-
import type { Transport } from '@libp2p/interface-transport';
|
|
27
|
-
import type { StreamMuxerFactory } from '@libp2p/interface-stream-muxer';
|
|
28
21
|
import type { ConnectionEncrypter } from '@libp2p/interface-connection-encrypter';
|
|
29
|
-
import type {
|
|
22
|
+
import type { ConnectionGater } from '@libp2p/interface-connection-gater';
|
|
30
23
|
import type { ContentRouting } from '@libp2p/interface-content-routing';
|
|
31
|
-
import type {
|
|
24
|
+
import type { Libp2p, ServiceMap } from '@libp2p/interface-libp2p';
|
|
32
25
|
import type { Metrics } from '@libp2p/interface-metrics';
|
|
33
|
-
import type {
|
|
34
|
-
import type {
|
|
35
|
-
import type {
|
|
36
|
-
import type {
|
|
37
|
-
import type {
|
|
38
|
-
import type {
|
|
26
|
+
import type { PeerDiscovery } from '@libp2p/interface-peer-discovery';
|
|
27
|
+
import type { PeerId } from '@libp2p/interface-peer-id';
|
|
28
|
+
import type { PeerRouting } from '@libp2p/interface-peer-routing';
|
|
29
|
+
import type { StreamMuxerFactory } from '@libp2p/interface-stream-muxer';
|
|
30
|
+
import type { Transport } from '@libp2p/interface-transport';
|
|
31
|
+
import type { RecursivePartial } from '@libp2p/interfaces';
|
|
39
32
|
import type { KeyChainInit } from '@libp2p/keychain';
|
|
40
|
-
import type {
|
|
41
|
-
import type {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
33
|
+
import type { PersistentPeerStoreInit } from '@libp2p/peer-store';
|
|
34
|
+
import type { Datastore } from 'interface-datastore';
|
|
35
|
+
export type ServiceFactoryMap<T extends Record<string, unknown> = Record<string, unknown>> = {
|
|
36
|
+
[Property in keyof T]: (components: Components) => T[Property];
|
|
37
|
+
};
|
|
45
38
|
/**
|
|
46
39
|
* For Libp2p configurations and modules details read the [Configuration Document](./CONFIGURATION.md).
|
|
47
40
|
*/
|
|
48
|
-
export interface Libp2pInit {
|
|
41
|
+
export interface Libp2pInit<T extends ServiceMap = {
|
|
42
|
+
x: Record<string, unknown>;
|
|
43
|
+
}> {
|
|
49
44
|
/**
|
|
50
45
|
* peerId instance (it will be created if not provided)
|
|
51
46
|
*/
|
|
@@ -75,40 +70,11 @@ export interface Libp2pInit {
|
|
|
75
70
|
/**
|
|
76
71
|
* libp2p PeerStore configuration
|
|
77
72
|
*/
|
|
78
|
-
peerStore:
|
|
79
|
-
/**
|
|
80
|
-
* libp2p Peer routing service configuration
|
|
81
|
-
*/
|
|
82
|
-
peerRouting: PeerRoutingInit;
|
|
73
|
+
peerStore: PersistentPeerStoreInit;
|
|
83
74
|
/**
|
|
84
75
|
* keychain configuration
|
|
85
76
|
*/
|
|
86
77
|
keychain: KeyChainInit;
|
|
87
|
-
/**
|
|
88
|
-
* The NAT manager controls uPNP hole punching
|
|
89
|
-
*/
|
|
90
|
-
nat: NatManagerInit;
|
|
91
|
-
/**
|
|
92
|
-
* If configured as a relay this node will relay certain
|
|
93
|
-
* types of traffic for other peers
|
|
94
|
-
*/
|
|
95
|
-
relay: (components: Components) => CircuitRelayService;
|
|
96
|
-
/**
|
|
97
|
-
* identify protocol options
|
|
98
|
-
*/
|
|
99
|
-
identify: IdentifyServiceInit;
|
|
100
|
-
/**
|
|
101
|
-
* ping protocol options
|
|
102
|
-
*/
|
|
103
|
-
ping: PingServiceInit;
|
|
104
|
-
/**
|
|
105
|
-
* fetch protocol options
|
|
106
|
-
*/
|
|
107
|
-
fetch: FetchServiceInit;
|
|
108
|
-
/**
|
|
109
|
-
* autonat protocol options
|
|
110
|
-
*/
|
|
111
|
-
autonat: AutonatServiceInit;
|
|
112
78
|
/**
|
|
113
79
|
* An array that must include at least 1 compliant transport
|
|
114
80
|
*/
|
|
@@ -118,41 +84,21 @@ export interface Libp2pInit {
|
|
|
118
84
|
peerDiscovery?: Array<(components: Components) => PeerDiscovery>;
|
|
119
85
|
peerRouters?: Array<(components: Components) => PeerRouting>;
|
|
120
86
|
contentRouters?: Array<(components: Components) => ContentRouting>;
|
|
121
|
-
/**
|
|
122
|
-
* Pass a DHT implementation to enable DHT operations
|
|
123
|
-
*/
|
|
124
|
-
dht?: (components: Components) => DualDHT;
|
|
125
87
|
/**
|
|
126
88
|
* A Metrics implementation can be supplied to collect metrics on this node
|
|
127
89
|
*/
|
|
128
90
|
metrics?: (components: Components) => Metrics;
|
|
129
|
-
/**
|
|
130
|
-
* If a PubSub implmentation is supplied, PubSub operations will become available
|
|
131
|
-
*/
|
|
132
|
-
pubsub?: (components: Components) => PubSub;
|
|
133
91
|
/**
|
|
134
92
|
* A ConnectionProtector can be used to create a secure overlay on top of the network using pre-shared keys
|
|
135
93
|
*/
|
|
136
94
|
connectionProtector?: (components: Components) => ConnectionProtector;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Once you have a libp2p instance, you can listen to several events it emits, so that you can be notified of relevant network events.
|
|
140
|
-
*/
|
|
141
|
-
export interface Libp2pEvents {
|
|
142
95
|
/**
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* ```js
|
|
146
|
-
* libp2p.addEventListener('peer:discovery', (event) => {
|
|
147
|
-
* const peerInfo = event.detail
|
|
148
|
-
* // ...
|
|
149
|
-
* })
|
|
150
|
-
* ```
|
|
96
|
+
* Arbitrary libp2p modules
|
|
151
97
|
*/
|
|
152
|
-
|
|
98
|
+
services: ServiceFactoryMap<T>;
|
|
153
99
|
}
|
|
154
100
|
export type { Libp2p };
|
|
155
|
-
export type Libp2pOptions = RecursivePartial<Libp2pInit
|
|
101
|
+
export type Libp2pOptions<T extends ServiceMap = Record<string, unknown>> = RecursivePartial<Libp2pInit<T>> & {
|
|
156
102
|
start?: boolean;
|
|
157
103
|
};
|
|
158
104
|
/**
|
|
@@ -168,11 +114,12 @@ export type Libp2pOptions = RecursivePartial<Libp2pInit> & {
|
|
|
168
114
|
* import { tcp } from '@libp2p/tcp'
|
|
169
115
|
* import { mplex } from '@libp2p/mplex'
|
|
170
116
|
* import { noise } from '@chainsafe/libp2p-noise'
|
|
117
|
+
* import { yamux } from '@chainsafe/libp2p-yamux'
|
|
171
118
|
*
|
|
172
119
|
* // specify options
|
|
173
120
|
* const options = {
|
|
174
121
|
* transports: [tcp()],
|
|
175
|
-
* streamMuxers: [mplex()],
|
|
122
|
+
* streamMuxers: [yamux(), mplex()],
|
|
176
123
|
* connectionEncryption: [noise()]
|
|
177
124
|
* }
|
|
178
125
|
*
|
|
@@ -180,5 +127,7 @@ export type Libp2pOptions = RecursivePartial<Libp2pInit> & {
|
|
|
180
127
|
* const libp2p = await createLibp2p(options)
|
|
181
128
|
* ```
|
|
182
129
|
*/
|
|
183
|
-
export declare function createLibp2p
|
|
130
|
+
export declare function createLibp2p<T extends ServiceMap = {
|
|
131
|
+
x: Record<string, unknown>;
|
|
132
|
+
}>(options: Libp2pOptions<T>): Promise<Libp2p<T>>;
|
|
184
133
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA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E7C;;OAEG;IACH,mBAAmB,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,mBAAmB,CAAA;IAErE;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAA;CAC/B;AAED,YAAY,EAAE,MAAM,EAAE,CAAA;AAEtB,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAEjI;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,YAAY,CAAE,CAAC,SAAS,UAAU,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,EAAG,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAQzI"}
|
package/dist/src/index.js
CHANGED
|
@@ -27,11 +27,12 @@ import { createLibp2pNode } from './libp2p.js';
|
|
|
27
27
|
* import { tcp } from '@libp2p/tcp'
|
|
28
28
|
* import { mplex } from '@libp2p/mplex'
|
|
29
29
|
* import { noise } from '@chainsafe/libp2p-noise'
|
|
30
|
+
* import { yamux } from '@chainsafe/libp2p-yamux'
|
|
30
31
|
*
|
|
31
32
|
* // specify options
|
|
32
33
|
* const options = {
|
|
33
34
|
* transports: [tcp()],
|
|
34
|
-
* streamMuxers: [mplex()],
|
|
35
|
+
* streamMuxers: [yamux(), mplex()],
|
|
35
36
|
* connectionEncryption: [noise()]
|
|
36
37
|
* }
|
|
37
38
|
*
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAqG9C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAA0D,OAAyB;IACnH,MAAM,IAAI,GAAG,MAAM,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAE5C,IAAI,OAAO,CAAC,KAAK,KAAK,KAAK,EAAE;QAC3B,MAAM,IAAI,CAAC,KAAK,EAAE,CAAA;KACnB;IAED,OAAO,IAAI,CAAA;AACb,CAAC"}
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
* })
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
+
import { UnexpectedPeerError, InvalidCryptoExchangeError } from '@libp2p/interface-connection-encrypter/errors';
|
|
24
25
|
import { logger } from '@libp2p/logger';
|
|
26
|
+
import { peerIdFromBytes, peerIdFromKeys } from '@libp2p/peer-id';
|
|
25
27
|
import { handshake } from 'it-handshake';
|
|
26
28
|
import * as lp from 'it-length-prefixed';
|
|
27
|
-
import { UnexpectedPeerError, InvalidCryptoExchangeError } from '@libp2p/interface-connection-encrypter/errors';
|
|
28
|
-
import { Exchange, KeyType } from './pb/proto.js';
|
|
29
|
-
import { peerIdFromBytes, peerIdFromKeys } from '@libp2p/peer-id';
|
|
30
29
|
import map from 'it-map';
|
|
30
|
+
import { Exchange, KeyType } from './pb/proto.js';
|
|
31
31
|
const log = logger('libp2p:plaintext');
|
|
32
32
|
const PROTOCOL = '/plaintext/2.0.0';
|
|
33
33
|
function lpEncodeExchange(exchange) {
|
|
@@ -96,14 +96,12 @@ async function encrypt(localId, conn, remoteId) {
|
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
98
|
class Plaintext {
|
|
99
|
-
|
|
100
|
-
this.protocol = PROTOCOL;
|
|
101
|
-
}
|
|
99
|
+
protocol = PROTOCOL;
|
|
102
100
|
async secureInbound(localId, conn, remoteId) {
|
|
103
|
-
return
|
|
101
|
+
return encrypt(localId, conn, remoteId);
|
|
104
102
|
}
|
|
105
103
|
async secureOutbound(localId, conn, remoteId) {
|
|
106
|
-
return
|
|
104
|
+
return encrypt(localId, conn, remoteId);
|
|
107
105
|
}
|
|
108
106
|
}
|
|
109
107
|
export function plaintext() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/insecure/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/insecure/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAA;AAC/G,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAA;AACxC,OAAO,GAAG,MAAM,QAAQ,CAAA;AACxB,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAMjD,MAAM,GAAG,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAA;AACtC,MAAM,QAAQ,GAAG,kBAAkB,CAAA;AAEnC,SAAS,gBAAgB,CAAE,QAAkB;IAC3C,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;IAEpC,OAAO,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAC7B,CAAC;AAED;;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Ac,CAAE,OAAe,EAAE,IAA2E,EAAE,QAAiB;QACnI,OAAO,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;IACzC,CAAC;CACF;AAED,MAAM,UAAU,SAAS;IACvB,OAAO,GAAG,EAAE,CAAC,IAAI,SAAS,EAAE,CAAA;AAC9B,CAAC"}
|
package/dist/src/libp2p.d.ts
CHANGED
|
@@ -1,52 +1,28 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ContentRouting } from '@libp2p/interface-content-routing';
|
|
2
|
+
import { type PeerRouting } from '@libp2p/interface-peer-routing';
|
|
2
3
|
import { EventEmitter } from '@libp2p/interfaces/events';
|
|
3
|
-
import { Multiaddr } from '@multiformats/multiaddr';
|
|
4
|
-
import { IdentifyService } from './identify/index.js';
|
|
5
|
-
import { FetchService } from './fetch/index.js';
|
|
6
|
-
import { PingService } from './ping/index.js';
|
|
7
|
-
import { AutonatService } from './autonat/index.js';
|
|
4
|
+
import { type Multiaddr } from '@multiformats/multiaddr';
|
|
8
5
|
import type { Components } from './components.js';
|
|
9
|
-
import type {
|
|
6
|
+
import type { Libp2p, Libp2pInit, Libp2pOptions } from './index.js';
|
|
10
7
|
import type { Connection, Stream } from '@libp2p/interface-connection';
|
|
11
|
-
import type { PeerRouting } from '@libp2p/interface-peer-routing';
|
|
12
|
-
import type { ContentRouting } from '@libp2p/interface-content-routing';
|
|
13
|
-
import type { PubSub } from '@libp2p/interface-pubsub';
|
|
14
|
-
import type { Registrar, StreamHandler, StreamHandlerOptions, Topology } from '@libp2p/interface-registrar';
|
|
15
|
-
import type { ConnectionManager } from '@libp2p/interface-connection-manager';
|
|
16
|
-
import type { PeerInfo } from '@libp2p/interface-peer-info';
|
|
17
|
-
import type { Libp2p, Libp2pEvents, Libp2pInit, Libp2pOptions } from './index.js';
|
|
18
|
-
import type { PeerStore } from '@libp2p/interface-peer-store';
|
|
19
|
-
import type { DualDHT } from '@libp2p/interface-dht';
|
|
20
|
-
import type { Metrics } from '@libp2p/interface-metrics';
|
|
21
8
|
import type { KeyChain } from '@libp2p/interface-keychain';
|
|
22
|
-
import type {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export declare class Libp2pNode extends EventEmitter<Libp2pEvents> implements Libp2p {
|
|
9
|
+
import type { Libp2pEvents, PendingDial, ServiceMap } from '@libp2p/interface-libp2p';
|
|
10
|
+
import type { Metrics } from '@libp2p/interface-metrics';
|
|
11
|
+
import type { PeerId } from '@libp2p/interface-peer-id';
|
|
12
|
+
import type { PeerStore } from '@libp2p/interface-peer-store';
|
|
13
|
+
import type { StreamHandler, StreamHandlerOptions, Topology } from '@libp2p/interface-registrar';
|
|
14
|
+
import type { AbortOptions } from '@libp2p/interfaces';
|
|
15
|
+
export declare class Libp2pNode<T extends ServiceMap = Record<string, unknown>> extends EventEmitter<Libp2pEvents> implements Libp2p<T> {
|
|
16
|
+
#private;
|
|
31
17
|
peerId: PeerId;
|
|
32
|
-
dht: DualDHT;
|
|
33
|
-
pubsub: PubSub;
|
|
34
|
-
identifyService: IdentifyService;
|
|
35
|
-
circuitService?: CircuitRelayService;
|
|
36
|
-
fetchService: FetchService;
|
|
37
|
-
pingService: PingService;
|
|
38
|
-
autonatService: AutonatService;
|
|
39
|
-
components: Components;
|
|
40
18
|
peerStore: PeerStore;
|
|
41
19
|
contentRouting: ContentRouting;
|
|
42
20
|
peerRouting: PeerRouting;
|
|
43
21
|
keychain: KeyChain;
|
|
44
|
-
connectionManager: ConnectionManager;
|
|
45
|
-
registrar: Registrar;
|
|
46
22
|
metrics?: Metrics;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
constructor(init: Libp2pInit);
|
|
23
|
+
services: T;
|
|
24
|
+
components: Components;
|
|
25
|
+
constructor(init: Libp2pInit<T>);
|
|
50
26
|
private configureComponent;
|
|
51
27
|
/**
|
|
52
28
|
* Starts the libp2p node and all its subsystems
|
|
@@ -69,21 +45,14 @@ export declare class Libp2pNode extends EventEmitter<Libp2pEvents> implements Li
|
|
|
69
45
|
* Get the public key for the given peer id
|
|
70
46
|
*/
|
|
71
47
|
getPublicKey(peer: PeerId, options?: AbortOptions): Promise<Uint8Array>;
|
|
72
|
-
fetch(peer: PeerId | Multiaddr, key: string, options?: AbortOptions): Promise<Uint8Array | null>;
|
|
73
|
-
ping(peer: PeerId | Multiaddr, options?: AbortOptions): Promise<number>;
|
|
74
48
|
handle(protocols: string | string[], handler: StreamHandler, options?: StreamHandlerOptions): Promise<void>;
|
|
75
49
|
unhandle(protocols: string[] | string): Promise<void>;
|
|
76
50
|
register(protocol: string, topology: Topology): Promise<string>;
|
|
77
51
|
unregister(id: string): void;
|
|
78
|
-
/**
|
|
79
|
-
* Called whenever peer discovery services emit `peer` events and adds peers
|
|
80
|
-
* to the peer store.
|
|
81
|
-
*/
|
|
82
|
-
onDiscoveryPeer(evt: CustomEvent<PeerInfo>): void;
|
|
83
52
|
}
|
|
84
53
|
/**
|
|
85
54
|
* Returns a new Libp2pNode instance - this exposes more of the internals than the
|
|
86
55
|
* libp2p interface and is useful for testing and debugging.
|
|
87
56
|
*/
|
|
88
|
-
export declare function createLibp2pNode(options: Libp2pOptions): Promise<Libp2pNode
|
|
57
|
+
export declare function createLibp2pNode<T extends ServiceMap = Record<string, unknown>>(options: Libp2pOptions<T>): Promise<Libp2pNode<T>>;
|
|
89
58
|
//# sourceMappingURL=libp2p.d.ts.map
|
package/dist/src/libp2p.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libp2p.d.ts","sourceRoot":"","sources":["../../src/libp2p.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"libp2p.d.ts","sourceRoot":"","sources":["../../src/libp2p.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,mCAAmC,CAAA;AAEvF,OAAO,EAAE,KAAK,WAAW,EAAe,M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