Giter Club home page Giter Club logo

monotree's People

Contributors

leejw51crypto avatar ljedrz avatar thyeem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

monotree's Issues

open multiple trees in a single DB instance

At the moment, I lazy initialize a single sled db instance, then create multiple Monotree instances via open_tree method on the sled db instance. Would like to see direct support OOTB if it is not already available,

Nice Project

Hi, I was looking for a simple merklized database in Rust to experiment with and this came up. It looks nice and simple and fast.

I ran some benchmarks locally and read the examples, and I like the design in general. I am not sure if this is being maintained much now, but a few questions on proper usage:

  • It exposes batches of all inserts or all removes or all gets. What about a batch of mixed inserts and removed? Is that just limited due to keeping the API simple? Or is there a reason it would be tricky to add?
  • This stores key_hash -> value_hash with merkle proof potential, which is nice an small. To use as a real storage, I would need a sibling DB to store the raw key->value mapping (unmerklized) and keep this just for proofs, correct?
  • RocksDB offers checkpoints, so I could provide read-only access to one version (for consistent long-reads/admin) while continuing to write. This is not exposed, but I assume this is mainly an issue of API clarity?

I don't want to ask you to implement these, but I would be interested in hearing if your thoughts on them and if they could be added without huge complexity overhead.

One issue there is keeping 2 databases in sync if I cannot commit atomically over them both. I could imagine sharing one eg. RocksDB under the hood, with all data stored with eg. 0 prefix and all data from MonoTree with 1. Then building a batch that contains all data updates and all MonoTree updates, so I can get the data and the proofs together in an atomic commit. This would require:

  • Prepending a prefix to writes, stripping from reads
  • Passing in a DB rather than creating it internally - for every call
  • (Most challenging) Relying on "someone else" to manage the batches and access

Apart from the API challenges, do you think something like that would be feasible?

Thank you for your time reading this. And let me know if I can support the project somehow.

Non inclusion proof?

It says that you can generate non inclusion proofs, but there doesn't seem to be any method provided for doing that?

snapshot

export , import all nodes from root
as json , bson

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.