tatami 0.1.5

A library for creating satellites and interacting with Tatami protocols.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{Satellite, Shoji, TATAMI_SPEC_MAJOR};
use libp2p::gossipsub::IdentTopic;

impl Satellite {
	/// Creates an asynchronous Shoji ("paper-door") that can be used to interact with the Satellite.
	pub fn create_shoji(&self) -> Shoji {
		self.shoji.clone()
	}

	/// Gossipsub topic
	#[must_use]
	pub fn topic() -> IdentTopic {
		IdentTopic::new(format!("{}TATAMI-GOSSIPSUB", TATAMI_SPEC_MAJOR))
	}
}