Pulsar Network is the distributed hash table peer-to-peer communication protocol for the Astreuos Blockchain.
``` use pulsar_network::{Client, Config, Route};
let seeders: Vec
let mut config: Config::new();
config.seeders = seeders;
let client = Client::new(config);
for (message, peer) in client.messages() { println!("Got: {}", message.body); }
```
```
use pulsar_network::{Message, Kind};
let mut message = Message::new(Kind::PostBlock, message_bytes);
```
```
network.broadcast(message);
```
```
network.send(message, peer)
```
Pull requests, bug reports and any kind of suggestion are welcome.
2022-04-11