Coder Social home page Coder Social logo

filed's Introduction

FileD

This is a file hashing distribution that is written in modern c++.

You could give it a file then it gives you list of your files hashes from the Merkletree and also you could prove the file with that hashes and index bits. (also in future will be added network to it)

Note: this project in development

Quick start

PS > .\build.bat
PS > cat .\test.txt
some text for stupid test

PS > .\filed.exe .\test.txt --get-proof 1
**************************
Hashes file 'temp.txt' for chunk size 8 has been written in path '.file_hash'
**************************
Hash 0 '0347f3d5652e28ca37330f67d8fe87b5f4492c96ada04ec966c6b9a88c9dcb42' is written!
Hash 1 '7b70eeeba1b0a648b12137976ca2a1e3e24e5bd0d6f985da89e2a0a7825956f0' is written!
Hash 2 '2582cfe117dff6fc99f0d2038d443bf70fd10b24271ee9f0bd24b53e35ce64f4' is written!
Root hash 'ec4c75be343f9df38a455fa49a987a3c38334169d2c30cf5029fe68511bb197b' is written!
Index '01011' is written!

Also you can use --help or -h for showing usage

Then for check proofness you could do:

PS > .\test_filed.exe
Hash 0 '0347f3d5652e28ca37330f67d8fe87b5f4492c96ada04ec966c6b9a88c9dcb42' is read!
Hash 1 '7b70eeeba1b0a648b12137976ca2a1e3e24e5bd0d6f985da89e2a0a7825956f0' is read!
Hash 2 '2582cfe117dff6fc99f0d2038d443bf70fd10b24271ee9f0bd24b53e35ce64f4' is read!
Root hash 'ec4c75be343f9df38a455fa49a987a3c38334169d2c30cf5029fe68511bb197b' is read!
index '01011' is read!
**************************
Proof root hash: ec4c75be343f9df38a455fa49a987a3c38334169d2c30cf5029fe68511bb197b

And it can't proof then print Not Proof

TODO

[ ] Compatible for unix [x] better interface [ ] network [ ] unittest

filed's People

Contributors

smks17 avatar

Watchers

 avatar

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.