Skip to main content

is_logbook_format 0.1.0 copy "is_logbook_format: ^0.1.0" to clipboard
is_logbook_format: ^0.1.0 copied to clipboard

The format an is_logbook keeps and speaks: the 96-byte entry, the hash that chains entries, and the kind an entry's bytes start with. No writer, no service, no sockets.

is_logbook_format #

The format an is_logbook keeps and speaks, without the code that writes it:

  • LogbookEntry: one 96-byte record of the entries file, three sha256 names: the entry before it (EntryHash), the code that wrote it (FileSetId) and the bytes (ObjectId).
  • EntryHash: the sha256 of an entry. EntryHash.origin is what the first entry names as the one before it: printf 'is_logbook/1' | shasum -a 256.
  • Kind: the first line of an entry's bytes. Kind.parse takes a kind a sender may write. Kind.read also takes started, which only the service writes.

It re-exports is_content_id (ObjectId, FileSetId).

Who depends on it #

The logbook's writer and service (is_logbook) and every program that talks to that service through is_logbook_client. A program that reads or writes through the service needs the format and nothing else, so depending on this package, not on is_logbook, gives it no way to open the logbook's directory and append past the service.

Its code is in is_logbook's code hash: it decides the bytes every entry is written as.

0
likes
150
points
181
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

The format an is_logbook keeps and speaks: the 96-byte entry, the hash that chains entries, and the kind an entry's bytes start with. No writer, no service, no sockets.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

is_content_id

More

Packages that depend on is_logbook_format