[−][src]Crate ssb_legacy_msg_data
This crate implements the ssb legacy data format, i.e. the free-form data that forms the content of legacy messages.
Two encodings are implemented: the signing encoding, and the json transport encoding.
Modules
json | This module implements the json encodings of the legacy ssb data format, both signing and json transport. |
value | Data structures for storing and manipulating arbitrary legacy data. |
Structs
LegacyF64 | A wrapper around |
WeirdEncodingIterator | An iterator that yields the bytes needed to compute a hash of some legacy data. |
Functions
is_i64_valid | Checks whether a given |
is_u64_valid | Checks whether a given |
legacy_length | Compute the length
of some data. Note that this takes time linear in the length of the data,
so you might want to use a |
to_weird_encoding | Create an owned representation of the weird encoding used for hash computation of legacy ssb messages. The number of bytes yielded by this iterator coincides with the length of the data. |