Crate sleep_parser [] [src]

sleep-parser

[crates.io version][2] [build status][4] [downloads][6] [docs.rs docs]8

Parse Dat protocol SLEEP files.

Format

<32 byte header>
  <4 byte magic string: 0x05025702>
  <1 byte version number: 0>
  <2 byte entry size: 40>
  <1 byte algorithm name length prefix: 7>
  <7 byte algorithm name: BLAKE2b>
  <17 zeroes>
<40 byte entries>
  <32 byte BLAKE2b hash>
  <8 byte Uint64BE children leaf byte length>

Installation

$ cargo add sleep-parser

License

Apache-2.0

Structs

Header

Structural representation of 32 byte SLEEP headers.

Enums

FileType

Type of file.

HashType

Algorithm used for hashing the data.

ProtocolVersion

SLEEP Protocol version.