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