Module linkspace::misc

source ·
Expand description

misc functions & tools - less stable

Modules

Structs

  • A newtype around any T:NetPkt that implements Eq (and Hash) based on pkt hash and Ord on the standard tree index order.
  • Extremely light best-effort deduplication.
  • Wrapper around a NetPkt that sets its recv field
  • Wrapper around a netpkt with a mutable NetHeader
  • Wrapper around a NetPkt that ensures .as_netarc() is only called once.
  • ‘tree’ index order is a Ord of NetPkts defined by the order of the tuple ( group, domain, space_depth, spacename, pubkey, create stamp, hash ) A wrapper around TreeKey ( see [[TreeKey::from_fields]] ) and [[TreeValue]] This is the key/value by which packets are saved in the tree index.

Enums

Statics

Functions

  • Blake3 hash
  • Read bytes as a [0,1) float by reading the first 52 bits. Panics if fewer than 8 bytes are supplied Primary use is to produces the same ‘random’ value by using NetPkt::hash or blake3_hash, regardless of language, and without an additional RNG dependencies,