FreddieRidell / hypercore

Secure, distributed, append-only log.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hypercore

crates.io version build status downloads docs.rs docs

WIP. Secure, distributed, append-only log structure. Adapted from mafintosh/hypercore.

Usage

let mut feed = hypercore::open("./feed.db")?;

feed.append(b"hello")?;
feed.append(b"world")?;

assert_eq!(feed.get(0)?, Some(b"hello".to_vec()));
assert_eq!(feed.get(1)?, Some(b"world".to_vec()));

Installation

$ cargo add hypercore

Safety

This crate uses #![deny(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.

Contributing

Want to join us? Check out our "Contributing" guide and take a look at some of these issues:

References

License

MIT OR Apache-2.0

About

Secure, distributed, append-only log.

License:Apache License 2.0


Languages

Language:Rust 100.0%