Git Product home page Git Product logo

Comments (1)

AlCutter avatar AlCutter commented on July 28, 2024

[copying the answer from Slack to the same question here in case it's helpful to someone else coming along later]

Hi Natalia, in a real application there would be (broadly speaking) two roles which would do this checking (for discussion about the roles themselves see here: https://github.com/google/trillian/tree/master/docs/claimantmodel):

  • a believer would want to convince itself that a "record" (claim statement) that it holds is present in the log before taking any action based on the contents of this claim, which it would do by requesting an inclusion proof for H(claim statement). If the client got this claim from the log after it had been tampered with, the log would be unable to provide a valid inclusion proof to any consistent log checkpoint
  • a claim verifier would be periodically fetching updated checkpoints from the log to learn about new "records" (claim statements) integrated into the log. When it sees a larger checkpoint it'll fetch the new claims which have been added to the log in order to inspect them. Internally, as it scans through these new claims, it would attempt to recreate the root hash from the new checkpoint by incorporating the H(claim statement) into its local "compact representation" of the source log state. Here again, if the entry in the log had been tampered with, the recreated root hash would not match the one in the checkpoint and so the tampering will be detected.

As a log operator, you may choose to implement a "log scrub" type tool which periodically does this checkpoint root hash recreation from log entries process as an early warning of sorts that something is wrong/tampered with.

Ultimately, though, if anyone ever relies on the tampered data in the future it should be detected because no believer or verifier should blindly trust a claim without convincing themselves that it is discoverable by virtue of proving its inclusion in the log.

HTH!

from trillian-examples.

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.