Crate carbonado

Source
Expand description

§Carbonado: An apocalypse-resistant data storage format for the truly paranoid.

Carbonado is an archival format for encrypted, durable, compressed, provably replicated consensus-critical data, without need for a blockchain or powerful hardware. Decoding and encoding can be done in the browser through WebAssembly, built into remote nodes on P2P networks, kept on S3-compatible cloud storage, or locally on-disk as a single highly portable flat file container format.

Re-exports§

pub use bao;
pub use secp256k1;

Modules§

constants
For details on Carbonado formats and their uses, see the Carbonado Format bitmask constant.
error
Error types
file
File helper methods.
structs
See structs::EncodeInfo for various statistics gatthered in the encoding step.
utils
Various utilities to assist with Carbonado encoding steps.

Functions§

decode
Decode data from Carbonado format in reverse order: bao -> zfec -> ecies -> snap
encode
Encode data into Carbonado format, performing compression, encryption, adding error correction codes, and stream verification encoding, in that order.
extract_slice
Extract a 1KB slice of a Bao stream at a specific index.
scrub
Scrub zfec-encoded data, correcting flipped bits using forward error correction codes. Returns an error when either valid data cannot be provided, or data is already valid.
verify_slice
Verify a number of 1KB slices of a Bao stream starting at a specific index.