Git Product home page Git Product logo

Comments (2)

daniel-ziegler avatar daniel-ziegler commented on May 2, 2024

Differences:

  • The Google implementation currently does not support empty epochs.
  • The Google implementation returns a codes.NotFound error when a lookup hits an empty branch rather than returning a proof of absence
  • The Google implementation doesn't allow changing an existing value (returns codes.AlreadyExists).
  • The Yahoo implementation persists everything (in LevelDB) rather than keeping things in memory.
  • The Yahoo implementation currently doesn't know about epochs. Instead, it has a concept of "snapshots", which are immutable past version of the tree. You can create a new snapshot from an existing snapshot by calling Snapshot.BeginModification(), which gives you a NewSnapshot, on which you can call Set a bunch of times, and then finally call Flush to get a modified Snapshot out along with the LevelDB WriteBatch that makes the necessary changes. Each snapshot has a unique uint64 identifier, which won't correspond to epoch numbers. Thus, each epoch needs to store a snapshot number internally. (The reason I did this was to increase modularity and make simpler abstractions: the tree is just a standard fully persistent data structure (https://en.wikipedia.org/wiki/Persistent_data_structure#Fully_persistent), and each epoch contains a reference to the tree snapshot.) I already have a layer mapping epoch numbers to snapshots numbers implemented, so I could just use something like that on the Google side as well as long as the API works.

from keytransparency.

cesarghali avatar cesarghali commented on May 2, 2024
  • Empty epochs support: refer to #50 [CLOSED].
  • Proof of absence: refer to #58.
  • Changing existing values: refer to #62 [CLOSED].

from keytransparency.

Related Issues (20)

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.