Git Product home page Git Product logo

rust-secp256k1-zkp's Introduction

Build Status

rust-secp256k1

This is a rust wrapper around secp256k1, with interesting Wiki documents and a lot of demos.

secp256k1 is an actively maintained optimized C library for EC(Elliptic Curve) operations on curve secp256k1, the main contributors include:

  • Peter Wuille, Co-founder and Core Tech Engineer of Blockstream.
  • Gregory Maxwell, Bitcoin Core developer, Co-Founder and CTO of Blockstream (resigned from Blockstream 2017 Nov.).
  • Andrew Poelstra, Mathematician at Blockstream.
  • And all other around fifty contributors.

You can find more detail about it on https://github.com/bitcoin/secp256k1.

This Rust library:

  • exposes type-safe Rust bindings for all libsecp256k1 functions
  • implements key generation
  • implements deterministic nonce generation via RFC6979
  • implements many unit tests, adding to those already present in libsecp256k1
  • makes no allocations (except in unit tests) for efficiency and use in freestanding implementations
  • including: schnorr signature, pedersen commitment, bulletproof

Build and Run

git clone --recursive https://github.com/garyyu/rust-secp256k1-zkp.git
cd rust-secp256k1-zkp
cargo build --release
cargo test --release -- demo_ecdsa_sign --nocapture

replace demo_ecdsa_sign with any demo/test as you want.

Documents

If you find this repo or the Wiki documents are useful for you, please star it (click that Star button on top right corner), and then find it later from Your stars menu on your github account.

And welcome to edit the Wiki pages and/or fork this repo, to contribute for the open source.

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.