Crate kitsune_p2p_bin_data
source ·Expand description
Binary types, hashes, signatures, etc used by kitsune.
Structs
- Distinguish multiple agents within the same network module.
- The basis hash/coordinate when identifying a neighborhood.
- The op data with its location
- Top-level “KitsuneDataHash” items are buckets of related meta-data. These metadata “Operations” each also have unique OpHashes.
- A cryptographic signature.
- Distinguish multiple categories of communication within the same network module.
Traits
- Kitsune hashes are expected to be 36 bytes. The first 32 bytes are the proper hash. The final 4 bytes are a hash-of-the-hash that can be treated like a u32 “location”.
Functions
- Get a hex string representation of two chars per byte
- Helpful pattern for debug formatting many bytes. If the size is > 32 bytes, only the first 8 and last 8 bytes will be displayed.
Type Definitions
- Convenience type