libp2p 0.32.2 → 0.33.0
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/README.md +1 -1
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/keychain/index.d.ts +1 -1
- package/dist/src/keychain/index.d.ts.map +1 -1
- package/dist/src/peer-store/persistent/index.d.ts +1 -1
- package/dist/src/peer-store/persistent/index.d.ts.map +1 -1
- package/package.json +52 -50
- package/src/circuit/auto-relay.js +2 -2
- package/src/identify/index.js +1 -1
- package/src/keychain/cms.js +2 -2
- package/src/keychain/index.js +3 -3
- package/src/peer-store/metadata-book.js +1 -1
- package/src/peer-store/persistent/index.js +1 -1
- package/src/ping/index.js +1 -1
- package/src/pnet/crypto.js +2 -2
- package/src/pnet/key-generator.js +2 -2
- package/src/record/README.md +1 -1
- package/src/record/envelope/index.js +3 -3
package/README.md
CHANGED
|
@@ -163,9 +163,9 @@ List of packages currently in existence for libp2p
|
|
|
163
163
|
| [`libp2p-kad-dht`](//github.com/libp2p/js-libp2p-kad-dht) | [](//github.com/libp2p/js-libp2p-kad-dht/releases) | [](https://david-dm.org/libp2p/js-libp2p-kad-dht) | [](https://travis-ci.com/libp2p/js-libp2p-kad-dht) | [](https://codecov.io/gh/libp2p/js-libp2p-kad-dht) | [Vasco Santos](mailto:vasco.santos@moxy.studio) |
|
|
164
164
|
| **utilities** |
|
|
165
165
|
| [`libp2p-crypto`](//github.com/libp2p/js-libp2p-crypto) | [](//github.com/libp2p/js-libp2p-crypto/releases) | [](https://david-dm.org/libp2p/js-libp2p-crypto) | [](https://travis-ci.com/libp2p/js-libp2p-crypto) | [](https://codecov.io/gh/libp2p/js-libp2p-crypto) | [Jacob Heun](mailto:jacobheun@gmail.com) |
|
|
166
|
-
| [`libp2p-crypto-secp256k1`](//github.com/libp2p/js-libp2p-crypto-secp256k1) | [](//github.com/libp2p/js-libp2p-crypto-secp256k1/releases) | [](https://david-dm.org/libp2p/js-libp2p-crypto-secp256k1) | [](https://travis-ci.com/libp2p/js-libp2p-crypto-secp256k1) | [](https://codecov.io/gh/libp2p/js-libp2p-crypto-secp256k1) | [Friedel Ziegelmayer](mailto:dignifiedquire@gmail.com) |
|
|
167
166
|
| **data types** |
|
|
168
167
|
| [`peer-id`](//github.com/libp2p/js-peer-id) | [](//github.com/libp2p/js-peer-id/releases) | [](https://david-dm.org/libp2p/js-peer-id) | [](https://travis-ci.com/libp2p/js-peer-id) | [](https://codecov.io/gh/libp2p/js-peer-id) | [Vasco Santos](mailto:santos.vasco10@gmail.com) |
|
|
168
|
+
| [`libp2p-record`](//github.com/libp2p/js-libp2p-record) | [](//github.com/libp2p/js-libp2p-record/releases) | [](https://david-dm.org/libp2p/js-libp2p-record) | [](https://travis-ci.com/libp2p/js-libp2p-record) | [](https://codecov.io/gh/libp2p/js-libp2p-record) | [Jacob Heun](mailto:santos.vasco10@gmail.com) |
|
|
169
169
|
| **pubsub** |
|
|
170
170
|
| [`libp2p-floodsub`](//github.com/libp2p/js-libp2p-floodsub) | [](//github.com/libp2p/js-libp2p-floodsub/releases) | [](https://david-dm.org/libp2p/js-libp2p-floodsub) | [](https://travis-ci.com/libp2p/js-libp2p-floodsub) | [](https://codecov.io/gh/libp2p/js-libp2p-floodsub) | [Vasco Santos](mailto:vasco.santos@moxy.studio) |
|
|
171
171
|
| [`libp2p-gossipsub`](//github.com/ChainSafe/js-libp2p-gossipsub) | [](//github.com/ChainSafe/js-libp2p-gossipsub/releases) | [](https://david-dm.org/ChainSafe/js-libp2p-gossipsub) | [](https://travis-ci.com/ChainSafe/js-libp2p-gossipsub) | [](https://codecov.io/gh/ChainSafe/js-libp2p-gossipsub) | [Cayman Nava](mailto:caymannava@gmail.com) |
|
package/dist/src/index.d.ts
CHANGED
|
@@ -198,7 +198,7 @@ declare class Libp2p extends EventEmitter {
|
|
|
198
198
|
} & Libp2pOptions & constructorOptions;
|
|
199
199
|
/** @type {PeerId} */
|
|
200
200
|
peerId: PeerId;
|
|
201
|
-
datastore: import("interface-datastore
|
|
201
|
+
datastore: import("interface-datastore").Datastore | undefined;
|
|
202
202
|
peerStore: PeerStore;
|
|
203
203
|
addresses: {
|
|
204
204
|
listen: never[];
|
|
@@ -420,7 +420,7 @@ type Libp2pOptions = {
|
|
|
420
420
|
modules: Libp2pModules;
|
|
421
421
|
addresses?: AddressManager.AddressManagerOptions | undefined;
|
|
422
422
|
connectionManager?: ConnectionManager.ConnectionManagerOptions | undefined;
|
|
423
|
-
datastore?: import("interface-datastore
|
|
423
|
+
datastore?: import("interface-datastore").Datastore | undefined;
|
|
424
424
|
dialer?: Dialer.DialerOptions | undefined;
|
|
425
425
|
/**
|
|
426
426
|
* libp2p host
|
|
@@ -514,7 +514,7 @@ type DhtOptions = {
|
|
|
514
514
|
validators?: import("libp2p-interfaces/src/types").DhtValidators | undefined;
|
|
515
515
|
};
|
|
516
516
|
type KeychainOptions = {
|
|
517
|
-
datastore?: import("interface-datastore
|
|
517
|
+
datastore?: import("interface-datastore").Datastore | undefined;
|
|
518
518
|
};
|
|
519
519
|
type PeerStoreOptions = {
|
|
520
520
|
persistence: boolean;
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":";AAoCA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFG;AACH;IACE;;;;;;OAMG;IACH,uBAHW,aAAa,GAAG,aAAa,GAC3B,QAAQ,MAAM,CAAC,CAa3B;IAED;;;;;OAKG;IACH,sBAFW,aAAa,GAAG,kBAAkB,EA+K5C;IAzKC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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D,OAAO,8BAA8B,CAAC;qBACtC,OAAO,8BAA8B,EAAE,aAAa;iBACpD,OAAO,qBAAqB,EAAE,SAAS;iBACvC,OAAO,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;iBA2Bf,OAAO;;;aAGP,OAAO;;;aAGP,OAAO"}
|
|
@@ -29,7 +29,7 @@ declare class Keychain {
|
|
|
29
29
|
* @class
|
|
30
30
|
*/
|
|
31
31
|
constructor(store: Datastore, options: KeychainOptions);
|
|
32
|
-
store: import("interface-datastore
|
|
32
|
+
store: import("interface-datastore").Datastore;
|
|
33
33
|
opts: any;
|
|
34
34
|
/**
|
|
35
35
|
* Gets an object that can encrypt/decrypt protected data
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/keychain/index.js"],"names":[],"mappings":";AAkHA;;;;;;;GAOG;AACH;IAwDE;;;;OAIG;IACH,0BAFa,MAAM,CAOlB;IAED;;;;;OAKG;IACH,6BAEC;IA3ED;;;;;;OAMG;IACH,mBAJW,SAAS,WACT,eAAe,EAmCzB;IA5BC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/keychain/index.js"],"names":[],"mappings":";AAkHA;;;;;;;GAOG;AACH;IAwDE;;;;OAIG;IACH,0BAFa,MAAM,CAOlB;IAED;;;;;OAKG;IACH,6BAEC;IA3ED;;;;;;OAMG;IACH,mBAJW,SAAS,WACT,eAAe,EAmCzB;IA5BC,+CAAkB;IAElB,UAAiD;IA4BnD;;;;;;;;;OASG;IACH,eAEC;IAwBD;;;;;;;OAOG;IACH,gBALW,MAAM,QACN,MAAM,8BAEJ,QAAQ,OAAO,CAAC,CAiD5B;IAED;;;;OAIG;IACH,YAFa,QAAQ,OAAO,EAAE,CAAC,CAc9B;IAED;;;;;OAKG;IACH,gBAHW,MAAM,GACJ,QAAQ,OAAO,GAAC,SAAS,CAAC,CAStC;IAED;;;;;OAKG;IACH,oBAHW,MAAM,GACJ,QAAQ,OAAO,CAAC,CAc5B;IAED;;;;;OAKG;IACH,gBAHW,MAAM,GACJ,QAAQ,OAAO,CAAC,CAc5B;IAED;;;;;;OAMG;IACH,mBAJW,MAAM,WACN,MAAM,GACJ,QAAQ,OAAO,CAAC,CAkC5B;IAED;;;;;;OAMG;IACH,gBAJW,MAAM,YACN,MAAM,GACJ,QAAQ,MAAM,CAAC,CAqB3B;IAED;;;;;;;OAOG;IACH,gBALW,MAAM,OACN,MAAM,YACN,MAAM,GACJ,QAAQ,OAAO,CAAC,CAyC5B;IAED;;;;;;OAMG;IACH,iBAJW,MAAM,QACN,MAAM,GACJ,QAAQ,OAAO,CAAC,CAiC5B;IAED;;;;;OAKG;IACH,qBAHW,MAAM,GACJ,QAAQ,MAAM,CAAC,CAc3B;IAED;;;;;OAKG;IACH,4BAHW,MAAM,WACN,MAAM,sBA2ChB;CACF;;;;;;;;;;;;QAtgBa,MAAM;;;;UACN,MAAM;;cArBP,OAAO,SAAS,CAAC;iBACjB,OAAO,qBAAqB,EAAE,SAAS;;;;;;UAKtC,MAAM;UACN,MAAM;oBACN,MAAM;eACN,MAAM"}
|
|
@@ -23,7 +23,7 @@ declare class PersistentPeerStore extends PeerStore {
|
|
|
23
23
|
/**
|
|
24
24
|
* Backend datastore used to persist data.
|
|
25
25
|
*/
|
|
26
|
-
_datastore: import("interface-datastore
|
|
26
|
+
_datastore: import("interface-datastore").Datastore;
|
|
27
27
|
/**
|
|
28
28
|
* Peers modified after the latest data persisted.
|
|
29
29
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/peer-store/persistent/index.js"],"names":[],"mappings":";AAwBA;;;GAGG;AAEH;;;;;;;GAOG;AAEH;;GAEG;AACH;IACE;;;OAGG;IACH,8CAFW,6BAA6B,GAAG,0BAA0B,EAwBpE;IAnBC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/peer-store/persistent/index.js"],"names":[],"mappings":";AAwBA;;;GAGG;AAEH;;;;;;;GAOG;AAEH;;GAEG;AACH;IACE;;;OAGG;IACH,8CAFW,6BAA6B,GAAG,0BAA0B,EAwBpE;IAnBC;;OAEG;IACH,oDAA2B;IAE3B;;OAEG;IACH,sBAA4B;IAE5B;;;;OAIG;IACH,gBAFU,IAAI,MAAM,EAAE,IAAI,MAAM,CAAC,CAAC,CAEH;IAE/B,kBAA0B;IAsC5B;;;;;;OAMG;IACH,sBAYC;IAED;;;;;;OAMG;IACH,yBAiBC;IAED;;;;;;;OAOG;IACH,8BAiBC;IAED;;;;;OAKG;IACH,oBA+BC;IAED;;;;;;OAMG;IACH,0BA8BC;IAED;;;;;;OAMG;IACH,sBAiBC;IAED;;;;;;OAMG;IACH,2BAkBC;IAED;;;;;;OAMG;IACH,wBAmBC;IAED;;;;;;;;OAQG;IACH,+BA0DC;CACF;;;;;;YAtXa,MAAM;eACN,OAAO,qBAAqB,EAAE,SAAS;;;;;;;;aAPxC,OAAO,qBAAqB,EAAE,KAAK;eACnC,OAAO,oBAAoB,EAAE,OAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libp2p",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "JavaScript implementation of libp2p, a modular peer to peer network stack",
|
|
5
5
|
"leadMaintainer": "Jacob Heun <jacobheun@gmail.com>",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
]
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
+
"abortable-iterator": "^3.0.0",
|
|
81
82
|
"@motrix/nat-api": "^0.3.1",
|
|
82
83
|
"@vascosantos/moving-average": "^1.1.0",
|
|
83
84
|
"abort-controller": "^3.0.0",
|
|
@@ -87,10 +88,10 @@
|
|
|
87
88
|
"class-is": "^1.1.0",
|
|
88
89
|
"debug": "^4.3.1",
|
|
89
90
|
"err-code": "^3.0.0",
|
|
90
|
-
"es6-promisify": "^
|
|
91
|
+
"es6-promisify": "^7.0.0",
|
|
91
92
|
"events": "^3.3.0",
|
|
92
93
|
"hashlru": "^2.3.0",
|
|
93
|
-
"interface-datastore": "^
|
|
94
|
+
"interface-datastore": "^6.0.2",
|
|
94
95
|
"it-all": "^1.0.4",
|
|
95
96
|
"it-buffer": "^0.1.2",
|
|
96
97
|
"it-drain": "^1.0.3",
|
|
@@ -124,23 +125,25 @@
|
|
|
124
125
|
"set-delayed-interval": "^1.0.0",
|
|
125
126
|
"streaming-iterables": "^6.0.0",
|
|
126
127
|
"timeout-abort-controller": "^1.1.1",
|
|
128
|
+
"uint8arrays": "^3.0.0",
|
|
127
129
|
"varint": "^6.0.0",
|
|
128
130
|
"wherearewe": "^1.0.0",
|
|
129
131
|
"xsalsa20": "^1.1.0"
|
|
130
132
|
},
|
|
131
133
|
"devDependencies": {
|
|
134
|
+
"@chainsafe/libp2p-noise": "^4.0.0",
|
|
132
135
|
"@nodeutils/defaults-deep": "^1.1.0",
|
|
133
136
|
"@types/es6-promisify": "^6.0.0",
|
|
134
137
|
"@types/node": "^16.0.1",
|
|
135
138
|
"@types/node-forge": "^0.10.1",
|
|
136
139
|
"@types/varint": "^6.0.0",
|
|
137
|
-
"abortable-iterator": "^3.0.0",
|
|
138
140
|
"aegir": "^33.1.1",
|
|
139
141
|
"buffer": "^6.0.3",
|
|
142
|
+
"datastore-core": "^6.0.7",
|
|
140
143
|
"delay": "^5.0.0",
|
|
141
144
|
"interop-libp2p": "^0.4.0",
|
|
142
|
-
"into-stream": "^
|
|
143
|
-
"ipfs-http-client": "^
|
|
145
|
+
"into-stream": "^7.0.0",
|
|
146
|
+
"ipfs-http-client": "^52.0.2",
|
|
144
147
|
"it-concat": "^2.0.0",
|
|
145
148
|
"it-pair": "^1.0.0",
|
|
146
149
|
"it-pushable": "^1.4.0",
|
|
@@ -149,23 +152,20 @@
|
|
|
149
152
|
"libp2p-delegated-content-routing": "^0.11.0",
|
|
150
153
|
"libp2p-delegated-peer-routing": "^0.10.0",
|
|
151
154
|
"libp2p-floodsub": "^0.27.0",
|
|
152
|
-
"libp2p-gossipsub": "^0.
|
|
155
|
+
"libp2p-gossipsub": "^0.11.0",
|
|
153
156
|
"libp2p-interfaces-compliance-tests": "^1.0.0",
|
|
154
|
-
"libp2p-kad-dht": "^0.
|
|
157
|
+
"libp2p-kad-dht": "^0.24.2",
|
|
155
158
|
"libp2p-mdns": "^0.17.0",
|
|
156
159
|
"libp2p-mplex": "^0.10.1",
|
|
157
|
-
"libp2p-noise": "^4.0.0",
|
|
158
160
|
"libp2p-tcp": "^0.17.0",
|
|
159
161
|
"libp2p-webrtc-star": "^0.23.0",
|
|
160
162
|
"libp2p-websockets": "^0.16.0",
|
|
161
|
-
"multihashes": "^4.0.2",
|
|
162
163
|
"nock": "^13.0.3",
|
|
163
164
|
"p-defer": "^3.0.0",
|
|
164
165
|
"p-times": "^3.0.0",
|
|
165
166
|
"p-wait-for": "^3.2.0",
|
|
166
167
|
"rimraf": "^3.0.2",
|
|
167
168
|
"sinon": "^11.1.1",
|
|
168
|
-
"uint8arrays": "^2.1.3",
|
|
169
169
|
"util": "^0.12.3"
|
|
170
170
|
},
|
|
171
171
|
"contributors": [
|
|
@@ -179,67 +179,69 @@
|
|
|
179
179
|
"Friedel Ziegelmayer <dignifiedquire@gmail.com>",
|
|
180
180
|
"Maciej Krüger <mkg20001@gmail.com>",
|
|
181
181
|
"Hugo Dias <mail@hugodias.me>",
|
|
182
|
-
"Volker Mische <volker.mische@gmail.com>",
|
|
183
182
|
"Chris Dostert <chrisdostert@users.noreply.github.com>",
|
|
184
183
|
"dirkmc <dirkmdev@gmail.com>",
|
|
185
|
-
"
|
|
184
|
+
"Volker Mische <volker.mische@gmail.com>",
|
|
186
185
|
"zeim839 <50573884+zeim839@users.noreply.github.com>",
|
|
187
|
-
"
|
|
186
|
+
"Richard Littauer <richard.littauer@gmail.com>",
|
|
188
187
|
"a1300 <matthias-knopp@gmx.net>",
|
|
188
|
+
"Ryan Bell <ryan@piing.net>",
|
|
189
189
|
"ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ <victorbjelkholm@gmail.com>",
|
|
190
|
-
"Andrew Nesbitt <andrewnez@gmail.com>",
|
|
191
|
-
"Elven <mon.samuel@qq.com>",
|
|
192
190
|
"Franck Royer <franck@royer.one>",
|
|
193
|
-
"Giovanni T. Parra <fiatjaf@gmail.com>",
|
|
194
|
-
"Samlior <samlior@foxmail.com>",
|
|
195
191
|
"Thomas Eizinger <thomas@eizinger.io>",
|
|
192
|
+
"Giovanni T. Parra <fiatjaf@gmail.com>",
|
|
196
193
|
"acolytec3 <17355484+acolytec3@users.noreply.github.com>",
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"João Santos <joaosantos15@users.noreply.github.com>",
|
|
202
|
-
"Julien Bouquillon <contact@revolunet.com>",
|
|
203
|
-
"Kevin Kwok <antimatter15@gmail.com>",
|
|
204
|
-
"Kevin Lacker <lacker@gmail.com>",
|
|
205
|
-
"Lars Gierth <lgierth@users.noreply.github.com>",
|
|
206
|
-
"Ethan Lam <elmemphis2000@gmail.com>",
|
|
207
|
-
"Marcin Tojek <mtojek@users.noreply.github.com>",
|
|
208
|
-
"Michael Burns <5170+mburns@users.noreply.github.com>",
|
|
209
|
-
"Miguel Mota <miguelmota2@gmail.com>",
|
|
210
|
-
"Nuno Nogueira <nunofmn@gmail.com>",
|
|
211
|
-
"Dmitriy Ryajov <dryajov@gmail.com>",
|
|
212
|
-
"Philipp Muens <raute1337@gmx.de>",
|
|
194
|
+
"Elven <mon.samuel@qq.com>",
|
|
195
|
+
"Andrew Nesbitt <andrewnez@gmail.com>",
|
|
196
|
+
"Samlior <samlior@foxmail.com>",
|
|
197
|
+
"Didrik Nordström <didrik.nordstrom@gmail.com>",
|
|
213
198
|
"RasmusErik Voel Jensen <github@solsort.com>",
|
|
214
|
-
"Diogo Silva <fsdiogo@gmail.com>",
|
|
215
199
|
"Robert Kiel <robert.kiel@hoprnet.org>",
|
|
216
|
-
"phillmac <phillmac@users.noreply.github.com>",
|
|
217
|
-
"robertkiel <robert.kiel@validitylabs.org>",
|
|
218
200
|
"Smite Chow <xiaopengyou@live.com>",
|
|
219
201
|
"Soeren <nikorpoulsen@gmail.com>",
|
|
220
202
|
"Sönke Hahn <soenkehahn@gmail.com>",
|
|
221
203
|
"TJKoury <TJKoury@gmail.com>",
|
|
222
|
-
"shresthagrawal <34920931+shresthagrawal@users.noreply.github.com>",
|
|
223
204
|
"Tiago Alves <alvesjtiago@gmail.com>",
|
|
224
|
-
"
|
|
205
|
+
"XiaoZhang <zxinmyth@gmail.com>",
|
|
225
206
|
"Yusef Napora <yusef@napora.org>",
|
|
226
207
|
"Zane Starr <zcstarr@gmail.com>",
|
|
227
|
-
"swedneck <40505480+swedneck@users.noreply.github.com>",
|
|
228
|
-
"Aleksei <vozhdb@gmail.com>",
|
|
229
|
-
"Cindy Wu <ciindy.wu@gmail.com>",
|
|
230
|
-
"Aditya Bose <13054902+adbose@users.noreply.github.com>",
|
|
231
|
-
"Chris Bratlien <chrisbratlien@gmail.com>",
|
|
232
208
|
"ebinks <elizabethjbinks@gmail.com>",
|
|
209
|
+
"Aditya Bose <13054902+adbose@users.noreply.github.com>",
|
|
210
|
+
"isan_rivkin <isanrivkin@gmail.com>",
|
|
211
|
+
"mayerwin <mayerwin@users.noreply.github.com>",
|
|
212
|
+
"mcclure <andi.m.mcclure@gmail.com>",
|
|
213
|
+
"phillmac <phillmac@users.noreply.github.com>",
|
|
214
|
+
"robertkiel <robert.kiel@validitylabs.org>",
|
|
215
|
+
"shresthagrawal <34920931+shresthagrawal@users.noreply.github.com>",
|
|
216
|
+
"swedneck <40505480+swedneck@users.noreply.github.com>",
|
|
233
217
|
"greenSnot <greenSnot@users.noreply.github.com>",
|
|
218
|
+
"Aleksei <vozhdb@gmail.com>",
|
|
234
219
|
"Bernd Strehl <bernd.strehl@gmail.com>",
|
|
235
|
-
"
|
|
236
|
-
"
|
|
220
|
+
"Chris Bratlien <chrisbratlien@gmail.com>",
|
|
221
|
+
"Cindy Wu <ciindy.wu@gmail.com>",
|
|
222
|
+
"Daijiro Wachi <daijiro.wachi@gmail.com>",
|
|
223
|
+
"Diogo Silva <fsdiogo@gmail.com>",
|
|
224
|
+
"Dmitriy Ryajov <dryajov@gmail.com>",
|
|
225
|
+
"Ethan Lam <elmemphis2000@gmail.com>",
|
|
226
|
+
"Fei Liu <liu.feiwood@gmail.com>",
|
|
227
|
+
"Felipe Martins <felipebrasil93@gmail.com>",
|
|
237
228
|
"Florian-Merle <florian.david.merle@gmail.com>",
|
|
238
|
-
"
|
|
229
|
+
"Francis Gulotta <wizard@roborooter.com>",
|
|
239
230
|
"Guy Sviry <32539816+guysv@users.noreply.github.com>",
|
|
240
231
|
"Henrique Dias <hacdias@gmail.com>",
|
|
241
|
-
"
|
|
242
|
-
"
|
|
243
|
-
"
|
|
232
|
+
"Irakli Gozalishvili <rfobic@gmail.com>",
|
|
233
|
+
"Joel Gustafson <joelg@mit.edu>",
|
|
234
|
+
"John Rees <johnrees@users.noreply.github.com>",
|
|
235
|
+
"João Santos <joaosantos15@users.noreply.github.com>",
|
|
236
|
+
"Julien Bouquillon <contact@revolunet.com>",
|
|
237
|
+
"Kevin Kwok <antimatter15@gmail.com>",
|
|
238
|
+
"Kevin Lacker <lacker@gmail.com>",
|
|
239
|
+
"Lars Gierth <lgierth@users.noreply.github.com>",
|
|
240
|
+
"Leask Wong <i@leaskh.com>",
|
|
241
|
+
"Marcin Tojek <mtojek@users.noreply.github.com>",
|
|
242
|
+
"Michael Burns <5170+mburns@users.noreply.github.com>",
|
|
243
|
+
"Miguel Mota <miguelmota2@gmail.com>",
|
|
244
|
+
"Nuno Nogueira <nunofmn@gmail.com>",
|
|
245
|
+
"Philipp Muens <raute1337@gmx.de>"
|
|
244
246
|
]
|
|
245
247
|
}
|
|
@@ -5,8 +5,8 @@ const log = Object.assign(debug('libp2p:auto-relay'), {
|
|
|
5
5
|
error: debug('libp2p:auto-relay:err')
|
|
6
6
|
})
|
|
7
7
|
|
|
8
|
-
const uint8ArrayFromString = require('uint8arrays/from-string')
|
|
9
|
-
const uint8ArrayToString = require('uint8arrays/to-string')
|
|
8
|
+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
|
|
9
|
+
const { toString: uint8ArrayToString } = require('uint8arrays/to-string')
|
|
10
10
|
const { Multiaddr } = require('multiaddr')
|
|
11
11
|
const PeerId = require('peer-id')
|
|
12
12
|
|
package/src/identify/index.js
CHANGED
|
@@ -8,7 +8,7 @@ const errCode = require('err-code')
|
|
|
8
8
|
const lp = require('it-length-prefixed')
|
|
9
9
|
const { pipe } = require('it-pipe')
|
|
10
10
|
const { collect, take, consume } = require('streaming-iterables')
|
|
11
|
-
const uint8ArrayFromString = require('uint8arrays/from-string')
|
|
11
|
+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
|
|
12
12
|
|
|
13
13
|
const PeerId = require('peer-id')
|
|
14
14
|
const { Multiaddr } = require('multiaddr')
|
package/src/keychain/cms.js
CHANGED
|
@@ -8,8 +8,8 @@ require('node-forge/lib/pbe')
|
|
|
8
8
|
const forge = require('node-forge/lib/forge')
|
|
9
9
|
const { certificateForKey, findAsync } = require('./util')
|
|
10
10
|
const errcode = require('err-code')
|
|
11
|
-
const uint8ArrayFromString = require('uint8arrays/from-string')
|
|
12
|
-
const uint8ArrayToString = require('uint8arrays/to-string')
|
|
11
|
+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
|
|
12
|
+
const { toString: uint8ArrayToString } = require('uint8arrays/to-string')
|
|
13
13
|
|
|
14
14
|
const privates = new WeakMap()
|
|
15
15
|
|
package/src/keychain/index.js
CHANGED
|
@@ -7,11 +7,11 @@ const log = Object.assign(debug('libp2p:keychain'), {
|
|
|
7
7
|
const sanitize = require('sanitize-filename')
|
|
8
8
|
const mergeOptions = require('merge-options')
|
|
9
9
|
const crypto = require('libp2p-crypto')
|
|
10
|
-
const { Key } = require('interface-datastore')
|
|
10
|
+
const { Key } = require('interface-datastore/key')
|
|
11
11
|
const CMS = require('./cms')
|
|
12
12
|
const errcode = require('err-code')
|
|
13
|
-
const uint8ArrayToString = require('uint8arrays/to-string')
|
|
14
|
-
const uint8ArrayFromString = require('uint8arrays/from-string')
|
|
13
|
+
const { toString: uint8ArrayToString } = require('uint8arrays/to-string')
|
|
14
|
+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
|
|
15
15
|
|
|
16
16
|
// @ts-ignore node-forge sha512 types not exported
|
|
17
17
|
require('node-forge/lib/sha512')
|
|
@@ -5,7 +5,7 @@ const log = Object.assign(debug('libp2p:peer-store:proto-book'), {
|
|
|
5
5
|
error: debug('libp2p:peer-store:proto-book:err')
|
|
6
6
|
})
|
|
7
7
|
const errcode = require('err-code')
|
|
8
|
-
const uint8ArrayEquals = require('uint8arrays/equals')
|
|
8
|
+
const { equals: uint8ArrayEquals } = require('uint8arrays/equals')
|
|
9
9
|
|
|
10
10
|
const PeerId = require('peer-id')
|
|
11
11
|
|
|
@@ -4,7 +4,7 @@ const debug = require('debug')
|
|
|
4
4
|
const log = Object.assign(debug('libp2p:persistent-peer-store'), {
|
|
5
5
|
error: debug('libp2p:persistent-peer-store:err')
|
|
6
6
|
})
|
|
7
|
-
const { Key } = require('interface-datastore')
|
|
7
|
+
const { Key } = require('interface-datastore/key')
|
|
8
8
|
const { Multiaddr } = require('multiaddr')
|
|
9
9
|
const PeerId = require('peer-id')
|
|
10
10
|
const { base32 } = require('multiformats/bases/base32')
|
package/src/ping/index.js
CHANGED
|
@@ -11,7 +11,7 @@ const { pipe } = require('it-pipe')
|
|
|
11
11
|
// @ts-ignore it-buffer has no types exported
|
|
12
12
|
const { toBuffer } = require('it-buffer')
|
|
13
13
|
const { collect, take } = require('streaming-iterables')
|
|
14
|
-
const equals = require('uint8arrays/equals')
|
|
14
|
+
const { equals } = require('uint8arrays/equals')
|
|
15
15
|
|
|
16
16
|
const { PROTOCOL_NAME, PING_LENGTH, PROTOCOL_VERSION } = require('./constants')
|
|
17
17
|
|
package/src/pnet/crypto.js
CHANGED
|
@@ -10,8 +10,8 @@ const Errors = require('./errors')
|
|
|
10
10
|
// @ts-ignore xsalsa20 has no types exported
|
|
11
11
|
const xsalsa20 = require('xsalsa20')
|
|
12
12
|
const KEY_LENGTH = require('./key-generator').KEY_LENGTH
|
|
13
|
-
const uint8ArrayFromString = require('uint8arrays/from-string')
|
|
14
|
-
const uint8ArrayToString = require('uint8arrays/to-string')
|
|
13
|
+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
|
|
14
|
+
const { toString: uint8ArrayToString } = require('uint8arrays/to-string')
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Creates a stream iterable to encrypt messages in a private network
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
const crypto = require('libp2p-crypto')
|
|
4
4
|
const KEY_LENGTH = 32
|
|
5
|
-
const uint8ArrayToString = require('uint8arrays/to-string')
|
|
6
|
-
const uint8ArrayFromString = require('uint8arrays/from-string')
|
|
5
|
+
const { toString: uint8ArrayToString } = require('uint8arrays/to-string')
|
|
6
|
+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Generates a PSK that can be used in a libp2p-pnet private network
|
package/src/record/README.md
CHANGED
|
@@ -17,7 +17,7 @@ You can read further about the envelope in [libp2p/specs#217](https://github.com
|
|
|
17
17
|
```js
|
|
18
18
|
// interface-record implementation example with the "libp2p-example" namespace
|
|
19
19
|
const Record = require('libp2p-interfaces/src/record')
|
|
20
|
-
const fromString = require('uint8arrays/from-string')
|
|
20
|
+
const { fromString } = require('uint8arrays/from-string')
|
|
21
21
|
|
|
22
22
|
class ExampleRecord extends Record {
|
|
23
23
|
constructor () {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
const errCode = require('err-code')
|
|
4
|
-
const uint8arraysConcat = require('uint8arrays/concat')
|
|
5
|
-
const uint8arraysFromString = require('uint8arrays/from-string')
|
|
4
|
+
const { concat: uint8arraysConcat } = require('uint8arrays/concat')
|
|
5
|
+
const { fromString: uint8arraysFromString } = require('uint8arrays/from-string')
|
|
6
6
|
// @ts-ignore libp2p-crypto does not support types
|
|
7
7
|
const cryptoKeys = require('libp2p-crypto/src/keys')
|
|
8
8
|
const PeerId = require('peer-id')
|
|
9
9
|
const varint = require('varint')
|
|
10
|
-
const uint8arraysEquals = require('uint8arrays/equals')
|
|
10
|
+
const { equals: uint8arraysEquals } = require('uint8arrays/equals')
|
|
11
11
|
|
|
12
12
|
const { codes } = require('../../errors')
|
|
13
13
|
const { Envelope: Protobuf } = require('./envelope')
|