GithubHelp home page GithubHelp logo

manta-network / pallet-manta-pay Goto Github PK

View Code? Open in Web Editor NEW
28.0 16.0 10.0 209.09 MB

A substrate pallet that enables Manta's decentialized anynonymous payment (MantaPay) protocol.

Home Page: https://manta.network

License: GNU General Public License v3.0

Rust 98.39% Shell 1.61%
blockchain polkadot zero-knowledge-proofs substrate-pallet manta-pallet rust

pallet-manta-pay's Introduction

pallet-manta-pay

This is a pallet that enables MantaPay, a multi-asset, decentralized shielded payment protocol. The best way to use this repo is to invoke it with a manta-runtime, available from manta.

Disclaimer: The code has not been properly reviewed or audited and is likely to have severe bugs or security pitfalls.Use at your own risk!

Documentations

cargo doc --open

Update pre-computed tokens

cargo run --release --bin precompute_coins --features=precompute-coins > ./src/benchmark/precomputed_coins.rs

Note: This is only needed when the zero-knowledge-proof circuit has been changed.

Test coverage

cargo install grcov
  • build and run test (extremely slow)
export CARGO_INCREMENTAL=0
export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"
export RUSTDOCFLAGS="-Cpanic=abort"
cargo +nightly test
  • generate the report
grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing -o ./target/debug/coverage/
open target/debug/coverage/index.html

pallet-manta-pay's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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