Add hacky patches for nim-waku interop

This commit is contained in:
Oskar Thoren 2020-09-21 12:57:00 +08:00
parent 1e9ce592c7
commit 16c9aa22ba
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
6 changed files with 2027 additions and 533 deletions

View File

@ -1658,6 +1658,11 @@
"integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==",
"dev": true
},
"@types/debug": {
"version": "4.1.5",
"resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.5.tgz",
"integrity": "sha512-Q1y515GcOdTHgagaVFhHnIFQ38ygs/kmxdNpvpou+raI9UO3YZcHDngBSYKQklcKlvA7iuQlmIKbzvmxcOE9CQ=="
},
"@types/long": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.1.tgz",
@ -3520,6 +3525,11 @@
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
"dev": true
},
"denque": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/denque/-/denque-1.4.1.tgz",
"integrity": "sha512-OfzPuSZKGcgr96rf1oODnfjqBFmr1DVoc/TrItj3Ohe0Ah1C5WX5Baquw/9U9KovnQ88EqmJbD66rKYUQYN1tQ=="
},
"depd": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
@ -6141,9 +6151,9 @@
}
},
"libp2p": {
"version": "0.28.10",
"resolved": "https://registry.npmjs.org/libp2p/-/libp2p-0.28.10.tgz",
"integrity": "sha512-0WR86vPj3RIEP7jFWBy1J4GBp8wweC1pmzy5nfKZazP22wA/crqqnxcr4xGs/7lzFyfBJuqRIswz3/IrlgO+ag==",
"version": "0.29.0",
"resolved": "https://registry.npmjs.org/libp2p/-/libp2p-0.29.0.tgz",
"integrity": "sha512-eALoJ0vpsonRwzLpdPY2/272RIl2MImIg2QToqLb+wBChcSQFB4U/r3LU8rZqEaDfRNupOBG/rx67gJTWC0h2Q==",
"requires": {
"abort-controller": "^3.0.0",
"aggregate-error": "^3.0.1",
@ -6154,7 +6164,7 @@
"err-code": "^2.0.0",
"events": "^3.1.0",
"hashlru": "^2.3.0",
"interface-datastore": "^1.0.4",
"interface-datastore": "^2.0.0",
"ipfs-utils": "^2.2.0",
"it-all": "^1.0.1",
"it-buffer": "^0.1.2",
@ -6162,26 +6172,240 @@
"it-length-prefixed": "^3.0.1",
"it-pipe": "^1.1.0",
"it-protocol-buffers": "^0.2.0",
"libp2p-crypto": "^0.17.9",
"libp2p-interfaces": "^0.3.1",
"libp2p-utils": "^0.1.2",
"mafmt": "^7.0.0",
"libp2p-crypto": "^0.18.0",
"libp2p-interfaces": "^0.5.1",
"libp2p-utils": "^0.2.0",
"mafmt": "^8.0.0",
"merge-options": "^2.0.0",
"moving-average": "^1.0.0",
"multiaddr": "^7.4.3",
"multistream-select": "^0.15.0",
"multiaddr": "^8.0.0",
"multicodec": "^2.0.0",
"multistream-select": "^1.0.0",
"mutable-proxy": "^1.0.0",
"node-forge": "^0.9.1",
"p-any": "^3.0.0",
"p-fifo": "^1.0.0",
"p-settle": "^4.0.1",
"peer-id": "^0.13.11",
"protons": "^1.0.1",
"peer-id": "^0.14.0",
"protons": "^2.0.0",
"retimer": "^2.0.0",
"sanitize-filename": "^1.6.3",
"streaming-iterables": "^4.1.0",
"timeout-abort-controller": "^1.0.0",
"streaming-iterables": "^5.0.2",
"timeout-abort-controller": "^1.1.1",
"varint": "^5.0.0",
"xsalsa20": "^1.0.2"
},
"dependencies": {
"cids": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/cids/-/cids-1.0.0.tgz",
"integrity": "sha512-HEBCIElSiXlkgZq3dgHJc3eDcnFteFp96N8/1/oqX5lkxBtB66sZ12jqEP3g7Ut++jEk6kIUGifQ1Qrya1jcNQ==",
"requires": {
"class-is": "^1.1.0",
"multibase": "^3.0.0",
"multicodec": "^2.0.0",
"multihashes": "^3.0.1",
"uint8arrays": "^1.0.0"
}
},
"interface-datastore": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/interface-datastore/-/interface-datastore-2.0.0.tgz",
"integrity": "sha512-wOImix5uVEZWo+8zPSRMJ9nHbszZi3PhZ14KHLN7oRQjaYQtjtOpYj6n5EXTjDAfIQI8KN9vntHXxyAw1lcRIA==",
"requires": {
"class-is": "^1.1.0",
"err-code": "^2.0.1",
"ipfs-utils": "^2.3.1",
"iso-random-stream": "^1.1.1",
"it-all": "^1.0.2",
"it-drain": "^1.0.1",
"nanoid": "^3.0.2"
}
},
"libp2p-crypto": {
"version": "0.18.0",
"resolved": "https://registry.npmjs.org/libp2p-crypto/-/libp2p-crypto-0.18.0.tgz",
"integrity": "sha512-zNMHDwf2J4t1LRjrBPMiSa4+14u0SfZRu66FyIVZtOnBGo3V/8imbJsOp8RPT8IgeHRN7EVIUt9lp8dcgXHMOw==",
"requires": {
"err-code": "^2.0.0",
"is-typedarray": "^1.0.0",
"iso-random-stream": "^1.1.0",
"keypair": "^1.0.1",
"multibase": "^3.0.0",
"multicodec": "^2.0.0",
"multihashing-async": "^2.0.1",
"node-forge": "^0.9.1",
"pem-jwk": "^2.0.0",
"protons": "^2.0.0",
"secp256k1": "^4.0.0",
"uint8arrays": "^1.1.0",
"ursa-optional": "^0.10.1"
}
},
"libp2p-interfaces": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/libp2p-interfaces/-/libp2p-interfaces-0.5.1.tgz",
"integrity": "sha512-mqu8kN5KppDjRIzdOZqg7yEMwLJOxFGDpdXhvTq4obephTIusW4lLSunst7C5VVSN6UE0SSVliN0tHvyW8tpag==",
"requires": {
"abort-controller": "^3.0.0",
"abortable-iterator": "^3.0.0",
"chai": "^4.2.0",
"chai-checkmark": "^1.0.1",
"class-is": "^1.1.0",
"debug": "^4.1.1",
"delay": "^4.3.0",
"detect-node": "^2.0.4",
"dirty-chai": "^2.0.1",
"err-code": "^2.0.0",
"it-goodbye": "^2.0.1",
"it-length-prefixed": "^3.1.0",
"it-pair": "^1.0.0",
"it-pipe": "^1.1.0",
"it-pushable": "^1.4.0",
"libp2p-crypto": "^0.18.0",
"libp2p-tcp": "^0.15.0",
"multiaddr": "^8.0.0",
"multibase": "^3.0.0",
"p-defer": "^3.0.0",
"p-limit": "^2.3.0",
"p-wait-for": "^3.1.0",
"peer-id": "^0.14.0",
"protons": "^2.0.0",
"sinon": "^9.0.2",
"streaming-iterables": "^5.0.2",
"uint8arrays": "^1.1.0"
}
},
"libp2p-tcp": {
"version": "0.15.1",
"resolved": "https://registry.npmjs.org/libp2p-tcp/-/libp2p-tcp-0.15.1.tgz",
"integrity": "sha512-alvgZ3lSNUyiz4vJOqvm6RpMQN9d17gSJa+VT+2pYLGf82o8pX3QvyhltMkBG7u9I+qZAkD6L27s8o0h38dpOg==",
"requires": {
"abortable-iterator": "^3.0.0",
"class-is": "^1.1.0",
"debug": "^4.1.1",
"err-code": "^2.0.0",
"libp2p-utils": "^0.2.0",
"mafmt": "^8.0.0",
"multiaddr": "^8.0.0",
"stream-to-it": "^0.2.2"
}
},
"libp2p-utils": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/libp2p-utils/-/libp2p-utils-0.2.0.tgz",
"integrity": "sha512-tZmqu27SULiIvfV+RZg5WOomxXIqM/SEd9FwKuirYTHHU1eet2bLzVQBhigatrdyQxebqi8GVnwbKmqdRElgCA==",
"requires": {
"abortable-iterator": "^3.0.0",
"debug": "^4.1.1",
"err-code": "^2.0.3",
"ip-address": "^6.1.0",
"multiaddr": "^8.0.0"
}
},
"mafmt": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/mafmt/-/mafmt-8.0.0.tgz",
"integrity": "sha512-MdaeaqZxjoYYWvlhr1GQ7sbsR3+L3s8QL0VtCuja+Iax3EhqAEgluSWPJezSDLyns7Ds4DGRyoq5+eIU7UDang==",
"requires": {
"multiaddr": "^8.0.0"
}
},
"multiaddr": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/multiaddr/-/multiaddr-8.0.0.tgz",
"integrity": "sha512-4OOyr0u0i4lvh9MY/mvuCNmH5eqoTamcnGeXz6umFGc0eaVQUGPDQNbp52YfFY92NlZ76pO6h4K2HkXsT5X43w==",
"requires": {
"cids": "^1.0.0",
"class-is": "^1.1.0",
"is-ip": "^3.1.0",
"multibase": "^3.0.0",
"uint8arrays": "^1.1.0",
"varint": "^5.0.0"
}
},
"multibase": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/multibase/-/multibase-3.0.1.tgz",
"integrity": "sha512-MRU5WpnSg81/vYO977MweoeUAxBdXl7+F5Af2Es+X6Vcgfk/g/EjIqXTgm3kb+xO3m1Kzr+aIV14oRX7nv5Z9w==",
"requires": {
"@multiformats/base-x": "^4.0.1",
"web-encoding": "^1.0.2"
}
},
"multicodec": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/multicodec/-/multicodec-2.0.1.tgz",
"integrity": "sha512-YDYeWn9iGa76hOHAyyZa0kbt3tr5FLg1ZXUHrZUJltjnxxdbTIbHnxWLd2zTcMOjdT3QyO+Xs4bQgJUcC2RWUA==",
"requires": {
"uint8arrays": "1.0.0",
"varint": "^5.0.0"
},
"dependencies": {
"uint8arrays": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-1.0.0.tgz",
"integrity": "sha512-14tqEVujDREW7YwonSZZwLvo7aFDfX7b6ubvM/U7XvZol+CC/LbhaX/550VlWmhddAL9Wou1sxp0Of3tGqXigg==",
"requires": {
"multibase": "^3.0.0",
"web-encoding": "^1.0.2"
}
}
}
},
"multihashes": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/multihashes/-/multihashes-3.0.1.tgz",
"integrity": "sha512-fFY67WOtb0359IjDZxaCU3gJILlkwkFbxbwrK9Bej5+NqNaYztzLOj8/NgMNMg/InxmhK+Uu8S/U4EcqsHzB7Q==",
"requires": {
"multibase": "^3.0.0",
"uint8arrays": "^1.0.0",
"varint": "^5.0.0"
}
},
"multihashing-async": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/multihashing-async/-/multihashing-async-2.0.1.tgz",
"integrity": "sha512-LZcH8PqW4iEKymaJ3RpsgpSJhXF29kAvO02ccqbysiXkQhZpVce8rrg+vzRKWO89hhyIBnQHI2e/ZoRVxmiJ2Q==",
"requires": {
"blakejs": "^1.1.0",
"err-code": "^2.0.0",
"js-sha3": "^0.8.0",
"multihashes": "^3.0.1",
"murmurhash3js-revisited": "^3.0.0",
"uint8arrays": "^1.0.0"
}
},
"peer-id": {
"version": "0.14.1",
"resolved": "https://registry.npmjs.org/peer-id/-/peer-id-0.14.1.tgz",
"integrity": "sha512-QSEyJy9fEOtgB/NVrlJvlxO1Q8ZKpTLJ/HBVTj7bGJFGnm4febqSB/KlEL4WYm/fgvriHM+Wkfea3yD1Uacllw==",
"requires": {
"cids": "^1.0.0",
"class-is": "^1.1.0",
"libp2p-crypto": "^0.18.0",
"minimist": "^1.2.5",
"multihashes": "^3.0.1",
"protons": "^2.0.0",
"uint8arrays": "^1.1.0"
}
},
"protons": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/protons/-/protons-2.0.0.tgz",
"integrity": "sha512-BTrE9D6/d1NGis+0D8TqAO1THdn4evHQhfjapA0NUaRH4+ecJJcbqaF7TE/DKv5czE9VB/TeOllBOmCyJhHnhg==",
"requires": {
"protocol-buffers-schema": "^3.3.1",
"signed-varint": "^2.0.1",
"uint8arrays": "^1.0.0",
"varint": "^5.0.0"
}
},
"streaming-iterables": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/streaming-iterables/-/streaming-iterables-5.0.2.tgz",
"integrity": "sha512-9z5iBWe9WXzdT0X1JT9fVC0mCcVxWt5yzZMBUIgjZnt2k23+UQF8Ac6kiI8DnlYZJn5iysvxKl3uGzlijMQ+/g=="
}
}
},
"libp2p-bootstrap": {
@ -6234,20 +6458,217 @@
}
},
"libp2p-gossipsub": {
"version": "0.4.7",
"resolved": "https://registry.npmjs.org/libp2p-gossipsub/-/libp2p-gossipsub-0.4.7.tgz",
"integrity": "sha512-TW5uC3afNpDSp9Dm2K9zPa9Lfjjgm5UAVQPC1gWEm7VINBGZ/az54088UAL+S4RPMg9xykJX6Cn0wk07Wd0r5A==",
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/libp2p-gossipsub/-/libp2p-gossipsub-0.6.1.tgz",
"integrity": "sha512-gwmRlS//Zz1nYuq4BfOsV3yg27i++uXihnteF5RztqRz6FqrRd0JsID32HtzD+LQ93PGTB457sxuOOpDvXLapQ==",
"requires": {
"buffer": "^5.6.0",
"@types/debug": "^4.1.5",
"debug": "^4.1.1",
"denque": "^1.4.1",
"err-code": "^2.0.0",
"it-length-prefixed": "^3.0.0",
"it-pipe": "^1.0.1",
"libp2p-pubsub": "~0.5.2",
"p-map": "^4.0.0",
"peer-id": "~0.13.12",
"protons": "^1.0.1",
"libp2p-interfaces": "^0.5.1",
"peer-id": "^0.14.0",
"protons": "^2.0.0",
"time-cache": "^0.3.0"
},
"dependencies": {
"cids": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/cids/-/cids-1.0.0.tgz",
"integrity": "sha512-HEBCIElSiXlkgZq3dgHJc3eDcnFteFp96N8/1/oqX5lkxBtB66sZ12jqEP3g7Ut++jEk6kIUGifQ1Qrya1jcNQ==",
"requires": {
"class-is": "^1.1.0",
"multibase": "^3.0.0",
"multicodec": "^2.0.0",
"multihashes": "^3.0.1",
"uint8arrays": "^1.0.0"
}
},
"libp2p-crypto": {
"version": "0.18.0",
"resolved": "https://registry.npmjs.org/libp2p-crypto/-/libp2p-crypto-0.18.0.tgz",
"integrity": "sha512-zNMHDwf2J4t1LRjrBPMiSa4+14u0SfZRu66FyIVZtOnBGo3V/8imbJsOp8RPT8IgeHRN7EVIUt9lp8dcgXHMOw==",
"requires": {
"err-code": "^2.0.0",
"is-typedarray": "^1.0.0",
"iso-random-stream": "^1.1.0",
"keypair": "^1.0.1",
"multibase": "^3.0.0",
"multicodec": "^2.0.0",
"multihashing-async": "^2.0.1",
"node-forge": "^0.9.1",
"pem-jwk": "^2.0.0",
"protons": "^2.0.0",
"secp256k1": "^4.0.0",
"uint8arrays": "^1.1.0",
"ursa-optional": "^0.10.1"
}
},
"libp2p-interfaces": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/libp2p-interfaces/-/libp2p-interfaces-0.5.1.tgz",
"integrity": "sha512-mqu8kN5KppDjRIzdOZqg7yEMwLJOxFGDpdXhvTq4obephTIusW4lLSunst7C5VVSN6UE0SSVliN0tHvyW8tpag==",
"requires": {
"abort-controller": "^3.0.0",
"abortable-iterator": "^3.0.0",
"chai": "^4.2.0",
"chai-checkmark": "^1.0.1",
"class-is": "^1.1.0",
"debug": "^4.1.1",
"delay": "^4.3.0",
"detect-node": "^2.0.4",
"dirty-chai": "^2.0.1",
"err-code": "^2.0.0",
"it-goodbye": "^2.0.1",
"it-length-prefixed": "^3.1.0",
"it-pair": "^1.0.0",
"it-pipe": "^1.1.0",
"it-pushable": "^1.4.0",
"libp2p-crypto": "^0.18.0",
"libp2p-tcp": "^0.15.0",
"multiaddr": "^8.0.0",
"multibase": "^3.0.0",
"p-defer": "^3.0.0",
"p-limit": "^2.3.0",
"p-wait-for": "^3.1.0",
"peer-id": "^0.14.0",
"protons": "^2.0.0",
"sinon": "^9.0.2",
"streaming-iterables": "^5.0.2",
"uint8arrays": "^1.1.0"
}
},
"libp2p-tcp": {
"version": "0.15.1",
"resolved": "https://registry.npmjs.org/libp2p-tcp/-/libp2p-tcp-0.15.1.tgz",
"integrity": "sha512-alvgZ3lSNUyiz4vJOqvm6RpMQN9d17gSJa+VT+2pYLGf82o8pX3QvyhltMkBG7u9I+qZAkD6L27s8o0h38dpOg==",
"requires": {
"abortable-iterator": "^3.0.0",
"class-is": "^1.1.0",
"debug": "^4.1.1",
"err-code": "^2.0.0",
"libp2p-utils": "^0.2.0",
"mafmt": "^8.0.0",
"multiaddr": "^8.0.0",
"stream-to-it": "^0.2.2"
}
},
"libp2p-utils": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/libp2p-utils/-/libp2p-utils-0.2.0.tgz",
"integrity": "sha512-tZmqu27SULiIvfV+RZg5WOomxXIqM/SEd9FwKuirYTHHU1eet2bLzVQBhigatrdyQxebqi8GVnwbKmqdRElgCA==",
"requires": {
"abortable-iterator": "^3.0.0",
"debug": "^4.1.1",
"err-code": "^2.0.3",
"ip-address": "^6.1.0",
"multiaddr": "^8.0.0"
}
},
"mafmt": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/mafmt/-/mafmt-8.0.0.tgz",
"integrity": "sha512-MdaeaqZxjoYYWvlhr1GQ7sbsR3+L3s8QL0VtCuja+Iax3EhqAEgluSWPJezSDLyns7Ds4DGRyoq5+eIU7UDang==",
"requires": {
"multiaddr": "^8.0.0"
}
},
"multiaddr": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/multiaddr/-/multiaddr-8.0.0.tgz",
"integrity": "sha512-4OOyr0u0i4lvh9MY/mvuCNmH5eqoTamcnGeXz6umFGc0eaVQUGPDQNbp52YfFY92NlZ76pO6h4K2HkXsT5X43w==",
"requires": {
"cids": "^1.0.0",
"class-is": "^1.1.0",
"is-ip": "^3.1.0",
"multibase": "^3.0.0",
"uint8arrays": "^1.1.0",
"varint": "^5.0.0"
}
},
"multibase": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/multibase/-/multibase-3.0.1.tgz",
"integrity": "sha512-MRU5WpnSg81/vYO977MweoeUAxBdXl7+F5Af2Es+X6Vcgfk/g/EjIqXTgm3kb+xO3m1Kzr+aIV14oRX7nv5Z9w==",
"requires": {
"@multiformats/base-x": "^4.0.1",
"web-encoding": "^1.0.2"
}
},
"multicodec": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/multicodec/-/multicodec-2.0.1.tgz",
"integrity": "sha512-YDYeWn9iGa76hOHAyyZa0kbt3tr5FLg1ZXUHrZUJltjnxxdbTIbHnxWLd2zTcMOjdT3QyO+Xs4bQgJUcC2RWUA==",
"requires": {
"uint8arrays": "1.0.0",
"varint": "^5.0.0"
},
"dependencies": {
"uint8arrays": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-1.0.0.tgz",
"integrity": "sha512-14tqEVujDREW7YwonSZZwLvo7aFDfX7b6ubvM/U7XvZol+CC/LbhaX/550VlWmhddAL9Wou1sxp0Of3tGqXigg==",
"requires": {
"multibase": "^3.0.0",
"web-encoding": "^1.0.2"
}
}
}
},
"multihashes": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/multihashes/-/multihashes-3.0.1.tgz",
"integrity": "sha512-fFY67WOtb0359IjDZxaCU3gJILlkwkFbxbwrK9Bej5+NqNaYztzLOj8/NgMNMg/InxmhK+Uu8S/U4EcqsHzB7Q==",
"requires": {
"multibase": "^3.0.0",
"uint8arrays": "^1.0.0",
"varint": "^5.0.0"
}
},
"multihashing-async": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/multihashing-async/-/multihashing-async-2.0.1.tgz",
"integrity": "sha512-LZcH8PqW4iEKymaJ3RpsgpSJhXF29kAvO02ccqbysiXkQhZpVce8rrg+vzRKWO89hhyIBnQHI2e/ZoRVxmiJ2Q==",
"requires": {
"blakejs": "^1.1.0",
"err-code": "^2.0.0",
"js-sha3": "^0.8.0",
"multihashes": "^3.0.1",
"murmurhash3js-revisited": "^3.0.0",
"uint8arrays": "^1.0.0"
}
},
"peer-id": {
"version": "0.14.1",
"resolved": "https://registry.npmjs.org/peer-id/-/peer-id-0.14.1.tgz",
"integrity": "sha512-QSEyJy9fEOtgB/NVrlJvlxO1Q8ZKpTLJ/HBVTj7bGJFGnm4febqSB/KlEL4WYm/fgvriHM+Wkfea3yD1Uacllw==",
"requires": {
"cids": "^1.0.0",
"class-is": "^1.1.0",
"libp2p-crypto": "^0.18.0",
"minimist": "^1.2.5",
"multihashes": "^3.0.1",
"protons": "^2.0.0",
"uint8arrays": "^1.1.0"
}
},
"protons": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/protons/-/protons-2.0.0.tgz",
"integrity": "sha512-BTrE9D6/d1NGis+0D8TqAO1THdn4evHQhfjapA0NUaRH4+ecJJcbqaF7TE/DKv5czE9VB/TeOllBOmCyJhHnhg==",
"requires": {
"protocol-buffers-schema": "^3.3.1",
"signed-varint": "^2.0.1",
"uint8arrays": "^1.0.0",
"varint": "^5.0.0"
}
},
"streaming-iterables": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/streaming-iterables/-/streaming-iterables-5.0.2.tgz",
"integrity": "sha512-9z5iBWe9WXzdT0X1JT9fVC0mCcVxWt5yzZMBUIgjZnt2k23+UQF8Ac6kiI8DnlYZJn5iysvxKl3uGzlijMQ+/g=="
}
}
},
"libp2p-interfaces": {
@ -6972,20 +7393,19 @@
}
},
"multistream-select": {
"version": "0.15.2",
"resolved": "https://registry.npmjs.org/multistream-select/-/multistream-select-0.15.2.tgz",
"integrity": "sha512-uoINaq+/9AkiUnyz0/bAZGqHUeWfRICuL9kqUnfuLPKwEr08HH0nbZFBsgfxP+1zzg22kabw8caNztE8ZSPncg==",
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/multistream-select/-/multistream-select-1.0.0.tgz",
"integrity": "sha512-82riQ+qZ0RPY+KbRdeeKKQnFSBCVpUbZ15EniGU2nfwM8NdrpPIeUYXFw4a/pyprcNeRfMgLlG9aCh874p8nJg==",
"requires": {
"bl": "^4.0.0",
"buffer": "^5.2.1",
"debug": "^4.1.1",
"err-code": "^2.0.0",
"it-handshake": "^1.0.0",
"it-handshake": "^1.0.2",
"it-length-prefixed": "^3.0.0",
"it-pipe": "^1.0.1",
"it-pushable": "^1.3.1",
"it-reader": "^2.0.0",
"p-defer": "^3.0.0"
"p-defer": "^3.0.0",
"uint8arrays": "^1.1.0"
}
},
"murmurhash3js-revisited": {

View File

@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"start": "parcel $INIT_CWD/index.html -d ./dist",
"lint": "standard"
"lint": "standard",
"postinstall": "echo \"Applying patches\"; patch --forward node_modules/libp2p-gossipsub/src/constants.js < ../patches/waku-hack-gossipsub-relay-codec.patch; patch --forward node_modules/libp2p/src/identify/index.js < ../patches/waku-hack-identify-peer-proto-manual.patch"
},
"keywords": [],
"author": "",
@ -14,10 +15,10 @@
"cytoscape": "^3.15.0",
"cytoscape-euler": "^1.2.2",
"it-pipe": "^1.1.0",
"libp2p": "^0.28.0",
"libp2p": "^0.29.0",
"libp2p-bootstrap": "^0.11.0",
"libp2p-floodsub": "^0.21.3",
"libp2p-gossipsub": "^0.4.5",
"libp2p-gossipsub": "^0.6.1",
"libp2p-kad-dht": "^0.19.5",
"libp2p-mplex": "^0.9.5",
"libp2p-noise": "^1.1.1",

2001
nodejs/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,27 +5,28 @@
"main": "index.js",
"dependencies": {
"it-pipe": "^1.1.0",
"libp2p": "^0.28.0",
"libp2p-bootstrap": "^0.11.0",
"libp2p-gossipsub": "^0.4.5",
"libp2p": "^0.29.0",
"libp2p-bootstrap": "^0.12.1",
"libp2p-gossipsub": "^0.6.1",
"libp2p-kad-dht": "^0.19.5",
"libp2p-mdns": "^0.14.1",
"libp2p-mplex": "^0.9.5",
"libp2p-noise": "^1.1.1",
"libp2p-secio": "^0.12.5",
"libp2p-tcp": "^0.14.5",
"libp2p-webrtc-star": "^0.18.3",
"libp2p-websockets": "^0.13.6",
"multiaddr": "^7.4.3",
"libp2p-mdns": "^0.15.0",
"libp2p-mplex": "^0.10.0",
"libp2p-noise": "^2.0.1",
"libp2p-secio": "^0.13.1",
"libp2p-tcp": "^0.15.1",
"libp2p-webrtc-star": "^0.20.0",
"libp2p-websockets": "^0.14.0",
"multiaddr": "^8.0.0",
"peer-id": "^0.13.12",
"protons": "^1.2.0",
"streaming-iterables": "^4.1.2",
"wrtc": "^0.4.5"
"wrtc": "^0.4.6"
},
"devDependencies": {},
"scripts": {
"start": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "echo \"Applying patches\"; patch --forward node_modules/libp2p-gossipsub/src/constants.js < ../patches/waku-hack-gossipsub-relay-codec.patch; patch --forward node_modules/libp2p/src/identify/index.js < ../patches/waku-hack-identify-peer-proto-manual.patch"
},
"keywords": [],
"author": "",

View File

@ -0,0 +1,12 @@
--- node_modules/libp2p-gossipsub/src/constants.js 1985-10-26 16:15:00.000000000 +0800
+++ patches/waku-hack-libp2p-gossipsub-constants.js 2020-09-19 14:32:31.012286382 +0800
@@ -9,7 +9,8 @@
* The protocol ID for version 1.0.0 of the Gossipsub protocol
* It is advertised along with GossipsubIDv11 for backwards compatability
*/
-exports.GossipsubIDv10 = '/meshsub/1.0.0';
+// HACK: Override GossipsubIDv10 multicodec to get matching protocol ish
+exports.GossipsubIDv10 = '/vac/waku/relay/2.0.0-beta1';
/**
* The protocol ID for version 1.1.0 of the Gossipsub protocol
* See the spec for details about how v1.1.0 compares to v1.0.0:

View File

@ -0,0 +1,33 @@
--- node_modules/libp2p/src/identify/index.js 1985-10-26 16:15:00.000000000 +0800
+++ patches/waku-hack-libp2p-identify-index.js 2020-09-19 14:23:03.511349910 +0800
@@ -174,6 +174,8 @@
const id = await PeerId.createFromPubKey(publicKey)
+
+ log('identifier signed', signedPeerRecord)
if (connection.remotePeer.toB58String() !== id.toB58String()) {
throw errCode(new Error('identified peer does not match the expected peer'), codes.ERR_INVALID_PEER)
}
@@ -182,11 +184,16 @@
observedAddr = IdentifyService.getCleanMultiaddr(observedAddr)
try {
- const envelope = await Envelope.openAndCertify(signedPeerRecord, PeerRecord.DOMAIN)
- if (this.peerStore.addressBook.consumePeerRecord(envelope)) {
- this.peerStore.protoBook.set(id, protocols)
- return
- }
+ // HACK: Using hardcoded waku relay codec and no signing
+ log("WARNING: Using hacky hardcoded waku relay codec and no signing")
+ const codec = "/vac/waku/relay/2.0.0-beta1"
+ this.peerStore.protoBook.set(id, [codec])
+ // TODO: Fix this for nim-waku interop, currently this fails
+ // const envelope = await Envelope.openAndCertify(signedPeerRecord, PeerRecord.DOMAIN)
+ // if (this.peerStore.addressBook.consumePeerRecord(envelope)) {
+ // this.peerStore.protoBook.set(id, protocols)
+ // return
+ //}
} catch (err) {
log('received invalid envelope, discard it and fallback to listenAddrs is available', err)
}