Code Monkey home page Code Monkey logo

Comments (2)

robvanmieghem avatar robvanmieghem commented on August 15, 2024 2

proof-of-existence

This application is made as a reference case on how to use the rivine api.
With this tool, its possible to register files on a rivine chain that will proof that a registerd file is made before a certain timestamp.

Application tasks:

Generate proof of existence for a given file

  1. Give a file, can be a compression of different files.
  2. Hash the file with ex. B2B
  3. Ask a transaction builder node for a prepared transaction.
  4. Add some fee to it (depending on how fast you want it to be added) and append the hash to that transaction.
  5. Sign that transaction.
  6. Send it to some transaction builder nodes.
  7. In a transaction builder node this transaction should then be added to a block that can be the valid one.
  8. Make sure to tell the customer to save the file in the format used as an input! This can be done by making the file publicly available if this is the purpose or be saved securly in a hidden place. Losing the original document will fail to proof existence in futere!

Check if given file is included

  1. Give a file
  2. Hash the file the same way
  3. Check if there exist a transaction with the calculated hash as extra info.
  4. If not found, the file is not in this blockchain (yet)
  5. If the hash is found, the blockdepth is calculated (the difference between the current blocktheight of the blockchain and the blockheight of the block of the found transaction) to give the "robustness"

from rivine.

GlenDC avatar GlenDC commented on August 15, 2024

Will this be added as a tutorial, such that anyone could easily fire up a daemon and a client, to play around with Rivine? Perhaps we'll have more pragmatic tutorials in the future, but this would be a great start, as we have nothing of its kind for now.

from rivine.

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.