Code Monkey home page Code Monkey logo

chainpoint's Introduction

Chainpoint rust

Description

A rust library to create and verify Chainpoint proofs.

Installation

Add this to your Cargo.toml:

[dependencies]
chainpoint = "0.1.0"

Usage

use chainpoint::merkle_root;

fn main() {
    let hashes = vec![
        "5b2ed30545431fc087ca0ebe766bc69967b5e492d79ea271e7b0144edfab5204".to_string(),
        "5e70190bb382f264e1b75940f1e1f49d789431c7ef4b67aa027d1e29217469c2".to_string(),
        "90adf4be4c47e84d73149bc13e459dd27c89a639d309f9339e8ef7d9d77eb472".to_string(),
    ];

    let root = merkle_root(hashes);

    println!("Root: {}", root);
}

License

This project is licensed under the MIT License - see the LICENSE file for details

chainpoint's People

Contributors

max-lt 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.