js-waku/packages
Danish Arora 124a29ebba
feat(static-sharding): filter peer connections per shards (#1626)
* add interface for `ShardInfo`

* enr: add deserialization logic & setup getters

* add sharding related utils

* utils: add shard<-> bytes conversion helpers

* pass `pubSubTopics` to `Waku`

* add `rs`/`rsv` details during discovery

* connection-manager: discard irrelevant peers

* add tests for static sharding - peer exchange

* update `ConnectionManager` tests to account for topic validity

* add js suffix to import

* address some comments

* move shardInfo encoding to ENR

* test: update for new API

* enr: add tests for serialisation & deserialisation

* address comment

* update test

* move getPeershardInfo to ConnectionManager and return ShardInfo instead of bytes

* update encoding and decoding relay shards to also factor for shards>64

* relay shard encoding decoding: use DataView and verbose spec tests

* improve tests for relay shard encoding decoding

* rm: only

* improve log message for unconfigured pubsub topic

* minor improvement

* fix: buffer <> Uint8array problems with shard decoding

* fix: test

* rm: only
2023-10-10 20:18:02 +05:30
..
browser-tests feat: add playwright CI testing (#1542) 2023-09-22 14:34:16 +02:00
build-utils chore: upgrade libp2p and related deps (#1482) 2023-08-16 20:18:13 +05:30
core feat(static-sharding): filter peer connections per shards (#1626) 2023-10-10 20:18:02 +05:30
dns-discovery feat(static-sharding): filter peer connections per shards (#1626) 2023-10-10 20:18:02 +05:30
enr feat(static-sharding): filter peer connections per shards (#1626) 2023-10-10 20:18:02 +05:30
interfaces feat(static-sharding): filter peer connections per shards (#1626) 2023-10-10 20:18:02 +05:30
message-encryption chore(deps)(deps): bump js-sha3 from 0.8.0 to 0.9.2 (#1633) 2023-10-05 14:12:20 +05:30
message-hash chore(deps)(deps): bump fast-check from 3.13.0 to 3.13.1 (#1629) 2023-10-02 22:28:51 +05:30
peer-exchange feat(static-sharding): filter peer connections per shards (#1626) 2023-10-10 20:18:02 +05:30
proto chore: upgrade engine to 18 (#1604) 2023-09-22 14:37:34 +05:30
relay chore(deps)(deps): bump fast-check from 3.13.0 to 3.13.1 (#1629) 2023-10-02 22:28:51 +05:30
sdk feat(static-sharding): filter peer connections per shards (#1626) 2023-10-10 20:18:02 +05:30
tests feat(static-sharding): filter peer connections per shards (#1626) 2023-10-10 20:18:02 +05:30
utils feat(static-sharding): filter peer connections per shards (#1626) 2023-10-10 20:18:02 +05:30