PhysarumSM / common

Common code
Apache License 2.0
0 stars 0 forks source link

Support for Private Networks #7

Closed t-lin closed 4 years ago

t-lin commented 4 years ago

Assume there exists two isolated networks A and B. Currently, if a new node joins that connects to a bootstrap in A, and a bootstrap from B, then nodes within the two networks will start discovering each other, thus merging the networks (even after the new node leaves).

Should have support for protected/private networks using the PrivateNetwork option when calling NewNode(). See: https://godoc.org/github.com/libp2p/go-libp2p#PrivateNetwork

t-lin commented 4 years ago

Created PSK generator functions to help in the process: https://github.com/Multi-Tier-Cloud/common/blob/genpsk/util/psk.go

Will finish the implementation later unless someone else wants to take up this issue.