Update README.md

This commit is contained in:
Jimmy Debe 2024-01-05 17:02:09 -05:00 committed by GitHub
parent f457db0a77
commit 4fc42dfbe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -35,4 +35,20 @@ In your new directory, download the supported py-libp2p from the github reposito
```
## Configuration
A Waku node is Publish/Subscribe which allows peers to communicate with each other.
Publish/Subscribe allows peers to join topics, within a network,
that they are interseted in.
Once joined, they are able to send and recieve messages within the topic.
The gossipsub protocol is the Publish/Subscribe protocol used in a Waku node.
``` python
# import the necessary py-libp2p
from libp2p.pubsub import pubsub
from libp2p.pubsub import gossipsub
from libp2p.peer.id import ID
```