Crates.io | pulsar-network |
lib.rs | pulsar-network |
version | 0.8.0 |
source | src |
created_at | 2021-12-09 13:39:28.186401 |
updated_at | 2022-05-03 10:34:51.061121 |
description | Pulsar Network is a distributed hash table peer-to-peer communication protocol for the Astreuos Blockchain. |
homepage | |
repository | https://github.com/stelar-labs/pulsar-network-rs |
max_upload_size | |
id | 495157 |
size | 26,804 |
Pulsar Network is the distributed hash table peer-to-peer communication protocol for the Astreuos Blockchain.
use pulsar_network::{Client, Route};
let bootstrap = false;
let route = Route::Test
let seeders: Vec<SocketAddr>;
let client = Client::new(bootstrap, route, seeders);
for (message, peer) in client.messages() {
println!("Got: {}", message.body);
}
use pulsar_network::{Message, Kind};
let mut message = Message::new(Kind::Block, message_bytes);
network.broadcast(message);
network.send(message, peer)
Pull requests, bug reports and any kind of suggestion are welcome.
2022-05-03