blindforge/FORMATS.md

608 B

Internal storage formats

This file describes the internal storage formats used for persistent data.

Repository metadata

meta.bin

File structure:

  • Version (1 byte): 0x00
  • Creation time (at which the repo was mirrored) (8 bytes, big endian)
  • Update time (8 bytes, big endian)
  • Title length (4 bytes, big endian) (may be zero)
  • Title
  • Repository URL length (4 bytes, big endian)
  • Repository URL
  • Commit hash length (4 bytes, big endian)
  • Commit hash
  • Content

Content is a concatenation of entries. Entry structure:

  • File path length (4 bytes, big endian)
  • File path
  • Hash (44 bytes)