GithubHelp home page GithubHelp logo

liability-proof's Introduction

Liability Proof

Build Status

If you're not familiar with liability proof or the Merkle approach, check this page: Proving Your Bitcoin Reserves. Basically, every mordern exchanges should prove they really hold the bitcoins/money they claim to.

Requirements

  • ruby 2.0.0 or higher (if you want to run 'rake test' in this gem you'll need ruby 2.1.0 or higher)
  • openssl

Install

gem install liability-proof

Usage

As command line tool:

# Generate root.json and partial tree json for each account in accounts.json.
# The generated file format conforms with the standard in progress:
# https://github.com/olalonde/blind-liability-proof#serialized-data-formats-work-in-progress--draft
lproof generate -f accounts.json

# Verify specified partial tree is valid, i.e. the root node calculated from
# from the partial tree matches the root node in root.json
lproof verify -r root.json -f partial_trees/jan.json

# Pretty print a partial tree or any other json file
lproof pp -f partial_trees/jan.json

As library: check LiabilityProof::Generator and LiabilityProof::Verifier for example.

License

LiabilityProof is a ruby gem released under MIT license. See http://peatio.mit-license.org for more information.

How To Contribute

Just create an issue or open a pull request :)

Other implementations

liability-proof's People

Stargazers

ptt avatar

Watchers

Oli avatar  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.