Pulsar Network

Pulsar Network is the distributed hash table peer-to-peer communication protocol for the Astreuos Blockchain.

Features

API

Client

```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); } ```

Message

```text use pulsar_network::{Message, Kind};

let mut message = Message::new(Kind::Block, message_bytes); ```

Broadcast

text network.broadcast(message);

Send

text network.send(message, peer)

Improvements

Contributions

Pull requests, bug reports and any kind of suggestion are welcome.

2022-05-03