Expand description
Useful functions for implementing the Oku file system.
Functionsยง
- entry_
key_ to_ path - Converts a key of a replica entry into a path within a replica.
- fmt
- Format bytes as a base32-encoded lowercase string.
- fmt_
short - Format first ten bytes of a byte list as a base32-encoded lowercase string.
- merge_
tickets - Merge multiple tickets into one, returning
None
if no tickets were given. - parse_
array - Parse a string as a base32-encoded byte array of length
N
. - parse_
array_ hex_ or_ base32 - Parse a string either as a hex-encoded or base32-encoded byte array of length
LEN
. - path_
to_ entry_ key - Converts a path to a key for an entry in a file system replica.
- path_
to_ entry_ prefix - Converts a path to a key prefix for entries in a file system replica.