Module fog_pack::types [−][src]
Expand description
Various fog-pack content types.
The fog-pack serialization format has a number of special types, in addition to the usual primitive types:
- Null
- Bool
Int- any integer from -2^63 to 2^64-1- F32 - 32-bit floating point
- F64 - 64-bit floating point
- Bin - Binary byte sequences
- Str - UTF-8 strings
- Array - heterogeneous sequence of values
- Map - Ordered key-value map, with strings for keys
Time- a unix timestampHash- a cryptographic hashIdentity- a public signing keyStreamId- an identifier for a symmetric encryption keyLockId- a public key for encryptionDataLockbox- Encrypted general dataIdentityLockbox- An encrypted private signing keyStreamLockbox- An encrypted key for symmetric encryptionLockLockbox- An encrypted private key
A general structure for holding fog-pack data is Value. The non-owning
version of it is ValueRef.
Structs
General encrypted data.
General encrypted data.
Crytographically secure hash of data.
An Identity, wrapping a public signing key.
An encrypted IdentityKey.
An encrypted IdentityKey.
Represents a fog-pack integer, whether signed or unsigned.
An identifier for a corresponding LockKey that can be used to encrypt data for that key.
An encrypted LockKey.
An reference to an encrypted LockKey.
An identifier for a corresponding StreamKey. It is primarily used to indicate lockboxes are
meant for that particular key.
An encrypted StreamKey.
An encrypted StreamKey.
Structure for holding a raw fog-pack timestamp. This stores time in some consistent internal format, which may or may not be UTC. UTC time can always be extracted from it.