weirdnet-net 0.2.0

Weirdnet networking: a libp2p node (TCP, QUIC, Noise, Yamux, mDNS, Kademlia, relays, hole punching, AutoNAT) carrying the application's own request and response types, signed key-exchange offers and answers with short codes, invitation tokens and links, sealed exchange messaging, node identities, user certificates and cards, under versioned identifier profiles.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Dark-shard blobs as custodians keep and return them. The blob is sealed by
//! `weirdnet-keys` (`dark::seal`) before it reaches the network; nodes only carry it and
//! never see what is inside. Splitting, sealing, claim tags and recovery are the keys
//! crate's; which custodians to trust is the application's.
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ShardBlob {
    pub set: String,
    pub index: u32,
    pub threshold: u32,
    pub total: u32,
    /// Opaque sealed text.
    pub blob: String,
}