Pulsar Network

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

Features

API

Client

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

```

Message

```

use pulsar_network::{Message, Kind};

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

```

Broadcast

```

network.broadcast(message);

```

Send

```

network.send(message, peer)

```

Improvements

Contributions

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

2022-04-11