1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#![deny(missing_docs)]
#![cfg_attr(test, deny(warnings))]
#![feature(external_doc)]
#![doc(include = "../README.md")]
#[macro_use]
extern crate failure;
mod header;
pub use header::*;
pub fn create_bitfield() -> Header {
Header::new(FileType::BitField, 3328, HashType::None)
}
pub fn create_signatures() -> Header {
Header::new(FileType::Signatures, 64, HashType::Ed25519)
}
pub fn create_tree() -> Header {
Header::new(FileType::Tree, 40, HashType::BLAKE2b)
}