Skip to content

Instantly share code, notes, and snippets.

Avatar

Christopher Schinnerl ChrisSchinnerl

View GitHub Profile
@ChrisSchinnerl
ChrisSchinnerl / sia_file_format_specs
Last active Jun 7, 2018
The new metadata file format for files uploaded to the Sia network
View sia_file_format_specs
// SiaFile is the new disk format for files uploaded to the Sia network.
// It contains all the necessary information to recover a file from its hosts
// and allows for easy constant-time updates of the file without having to read
// or write the whole file.
type SiaFile struct {
version [16]byte // version of the sia file format used
chunkOffset int64 // offset of the first chunk, forced to be a factor of 4096, default 16kib
fileSize int64 // total size of the file re
trackingPath string // path to the tracked file on disk
View keybase.md

Keybase proof

I hereby claim:

  • I am chrisschinnerl on github.
  • I am cschinnerl (https://keybase.io/cschinnerl) on keybase.
  • I have a public key ASBob5yw70jXx-G68YojyfMWxepxFgARqD2OEd9kxLSq1Ao

To claim this, I am signing this object: