A node and runtime configuration for polkadot node.

Overview

MANTA NODE

This repo is a fresh FRAME-based Substrate node, forked from substrate-developer-hub/substrate-node-templte ๐Ÿš€ It links to pallet-manta-dap for all Manta-APIs. See pallet-manta-dap/readme for more details.

Howto Run Manta Node

make init
make run

You will need to use manta front end to interact with this node.

Demo

Setup

  1. run a Manta node locally
  2. run a manta-front-end locally (require node.js with version > 12.0):
    git clone https://github.com/Manta-Network/manta-front-end.git
    cd manta-front-end
    yarn install
    yarn start 
    you will see an minimal front-end interface like the following: gui

Step 1: Create basecoin

Now we create a basecoin with 2000000 supply.

step1

Step 2: Mint a 10 unit worth private coin 1

Here, we use pre-computed values of commitment, s, and k.

  • s: xsPXqMXA1SKMOehtsgVWV8xw9Mj0rh3O8Yt1ZHJzaQ4=
  • k: +tMTpSikpdACxuDGZTl5pxwT7tpYcX/DFKJRZ1oLfqc=
  • commitment (cm): XzoWOzhp6rXjQ/HDEN6jSLsLs64hKXWUNuFVtCUq0AA= step2

you can see the newly minted private coin in the ledger:

step2-2

Step 3: privately transfer coin 1 to coin 2

Now, we make a private transfer. This will generate a new UTXO, coin 2. We are also using pre-computed values:

  • merkle_roots: q5VhDl/WxjeemZ/2ivGmiuOTFMEazcqEFk5ESISngso=
  • old sn: jqhzAPanABquT0CpMC2aFt2ze8+UqMUcUG6PZBmqFqE=
  • old k: +tMTpSikpdACxuDGZTl5pxwT7tpYcX/DFKJRZ1oLfqc=
  • new k: 2HbWGQCLOfxuA4jOiDftBRSbjjAs/a0vjrq/H4p6QBI=
  • new commitment: 1zuOv92V7e1qX1bP7+QNsV+gW5E3xUsghte/lZ7h5pg=
  • encrypted transfer amount: UkNssYxe5HUjSzlz5JE1pQ==
  • proof: Dhs0fgdEpE1SfBGIn5HpD22YvzPZKsLKMBPwT9QRe/BcuqnQuyr0oUHb7lNS/WoIPD/H348KI+e6eMcNa2nYLN5AqH/ZmXz7p2nrwUsHJVOYnFDuH2zEAcZi0hTPTN0HEiiXtYEBmUSt52xDehRSw/yCXY6AFvlQzXvMWdXq2SF2zRh93Rs9pQyO/3e7QLyMffIMeeAbx580PsJJELPrSB9x+a99l/4z8NW0YlBUwzt90uFL1bnEcp+B1gxXjpAD

step3

Step 4: reclaim (forfeit) coin 2 (10 unit) to public coin

Using pre-computed values.

  • merkle root: HMaIZu0QCE4s5fYiOpU3ouQE0m7PT4rBNsmMskIi50c=
  • old sn: bwgOTJ8nNJ8phco73Zm6A8jV0ua6qsw9MtXtwyxV7cQ=,
  • old k: 2HbWGQCLOfxuA4jOiDftBRSbjjAs/a0vjrq/H4p6QBI=,
  • proof: 7+PY3Z5vL33hTY7w3HHLsvCCiICwtvQ6h6J2vt/y5ZteyJSj0LWbkwHaKlA+6/SUkKUxEyVox6bwXsakFRPrfuTfRmw2FAoVZCUzSKMqkKoFcj9WwskAnyYvnu1De7ARucNI8FFvGOhcejaPyWUu7VAH+y2iJz4irKU+vnwXqc5QKoPmA8m67Kyor4i+3PSL/tmTuVblLt8bmHjFbXhvicxdAbnKX33W36Ucg7nYOns4yC1h+ILO4llwUp4tOR6Y

step4

Now, you succesfully reclaim coin 2 to public!

You might also like...
Faterium Substrate Node, Runtime, and Pallets. Contains "faterium-polls-pallet" with logic of Faterium Polls.

Faterium Substrate Node Faterium - a place where fates are forged. This is the official implementation of Faterium Crowdfunding Polls in Rust as Subst

Simple node and rust script to achieve an easy to use bridge between rust and node.js

Node-Rust Bridge Simple rust and node.js script to achieve a bridge between them. Only 1 bridge can be initialized per rust program. But node.js can h

Sample lightning node command-line app built on top of Ldk Node (similar to ldk-sample).

ldk-node-sample Sample lightning node command-line app built on top of Ldk Node (similar to ldk-sample ). Installation git clone https://github.com/op

Built on the Substrate-based runtime, this repository develops the Paralink Network, a cross-chain Oracle platform for secure and scalable data integration. Our goal is to create a robust infrastructure that ensures efficient and reliable data transmission across blockchain networks.
The Solana Program Library (SPL) is a collection of on-chain programs targeting the Sealevel parallel runtime.

Solana Program Library The Solana Program Library (SPL) is a collection of on-chain programs targeting the Sealevel parallel runtime. These programs a

A Secure Capability-Based Runtime for JavaScript Based on Deno
A Secure Capability-Based Runtime for JavaScript Based on Deno

Secure Runtime secure-runtime, as the name implies, is a secure runtime for JavaScript, designed for the multi-tenant serverless environment. It is an

Darwinia networks' tracing runtime override collections

Darwinia Runtime Overrides USAGE: runtime-overrides [OPTIONS] --runtime CHAIN OPTIONS: -h, --help Print help information

JS Runtime proof-of-concept for interactions with AvdanOS

Important: we are migrating to a new Discord server .gg/avdanos What is this ? This repo aims to be a JavaScript environment where AvdanOS extensions

A modern runtime for javascript.

Just NOTICE: README LINKS AND SITE ARE WIP. LINKS MAY NOT WORK Just is a simple, and modern runtime for JavaScript that uses V8 and is built in Rust.

Releases(v0.1.3-w3f)
Owner
Manta Network
An interoperable privacy protocol for the DeFi Stack
Manta Network
A re-write of polkadot staking miner using subxt to avoid hard dependency to each runtime version

Staking Miner v2 WARNING this library is under active development DO NOT USE IN PRODUCTION. The library is a re-write of polkadot staking miner using

Parity Technologies 19 Dec 28, 2022
Polkadot Node Implementation

Polkadot Implementation of a https://polkadot.network node in Rust based on the Substrate framework. NOTE: In 2018, we split our implementation of "Po

Parity Technologies 6.5k Jan 6, 2023
Subsocial full node with Substrate/Polkadot pallets for decentralized communities: blogs, posts, comments, likes, reputation.

Subsocial Node by DappForce Subsocial is a set of Substrate pallets with web UI that allows anyone to launch their own decentralized censorship-resist

DappForce 74 Nov 24, 2022
Cross-chain hub for Crypto Asset on Polkadot

ChainX ChainX is a community-driven project built on the next-generation blockchain framework substrate, the largest Layer-2 network of Bitcoin using

ChainX 261 Dec 28, 2022
๐ŸŒ The Earth Blockchain on Polkadot (archived)

Social Network Blockchain ยท The Social Network blockchain is a next-generation governance, economic, and social system for humanity built on Polkadot

social.network 18 Jan 2, 2023
A top-up of fatality based errors, originally developed for polkadot

fatality A generative approach to creating fatal and non-fatal errors. The generated source utilizes thiserror::Error derived attributes heavily, and

Bernhard Schuster 9 Sep 1, 2022
interBTC A trust-minimized bridge from Bitcoin to Polkadot.

interBTC A trust-minimized bridge from Bitcoin to Polkadot. Explore the specification ยป Report Bug ยท Request Feature This repository is hosted on GitH

Interlay 192 Dec 27, 2022
The Polkadot Hackathon Global Series North America edition is the second in a series of hackathons that brings the cutting edge of blockchain to a global community.

Polkadot Hackathon Project We are translating Uniswap v2 to Ink. Dependencies Install cargo-contract for building Ink contracts: cargo install dylint-

Kristiyan Dilov 3 Jun 28, 2022
A holistic, minimal documentation portal for the Polkadot developers.

polkadot-sdk-docs A holistic, minimal documentation portal for the Polkadot developers. Master Tutorial The very, very rough plan that I have so far i

Parity Technologies 9 May 26, 2023
generate peerid from secret_ed25119 for chains made with polkadot-sdk

genpeerid genpeerid is a command-line tool designed to generate a PeerId from an ED25519 secret key, formatted specifically for Polkadot and Substrate

Rotko Networks 3 Apr 3, 2024