Crate hypercore [−] [src]
hypercore
[][2] [][4] [][6] []8
WIP. Secure, distributed, append-only log structure. Adapted from mafintosh/hypercore.
Usage
ⓘThis example is not tested
extern crate hypercore; use hypercore::Feed; use std::path::PathBuf; let path = PathBuf::from("./my-first-dataset"); let feed = Feed::new(path); feed.append(b"hello")?; feed.append(b"world")?; println!("{:?}", feed.get(0)); // prints "hello" println!("{:?}", feed.get(1)); // prints "world"
Tasks
- [x] Crypto implementation.
- [ ] Bitfield implementation.
- [ ] Storage implementation.
- [ ] Tree Index implementation.
- [ ] Pub Feed API.
Installation
$ cargo add hypercore
License
MIT OR Apache-2.0
Modules
crypto |
Cryptographic functions. |
tree_index |
Stateful tree index. Or well, stateful flat-tree. It's what happens when you combine a flat-tree with a sparse-bitfield - which ends up being pretty cool! |
Structs
Feed |
Append-only log structure. |