qys8888 / 3dp

Implementation of 3DPass Node. Proof of Scan decentralized blockchain platform for tokenization of things, preventing assets form copy making. Useful smart-contracts and dApps.

Home Page:https://3dpass.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo

3Dpass Node - mainnet

3DPass is an OpenSource decentralized WEB 3.0 P2P platform for tokenization of real physical and virtual things and its transformation into digital assets. The main idea of 3DPass is to make it possible for people to use real world objects in digital within smart-contracts and deals and to take all advantages from that (learn more about 3DPass features ). Follow the White Paper for the details.

Every object, transformed by 3DPass, has its own unique and stable identity called HASH ID the object might be recognized by. In order to encourage users to maintain the network and to solve issues there is a cryptocurrency 3DP Coin which is also required for transactions related to user's assets.

3D Pass NODE is one layer blockchain based on Substrate with brandnew consensus Proof of Scan using 3D object shape recognition algorithm called Grid2d, which is implemented into the Node with the recognition tool pass3d. Proof of Scan is a kind of non-conventional PoW consensus because of the computing power is used for 3D shape recognition. 3Dpass NODEs are designed to provide objects authenticity check. You might call it The Ledger of unique things, which allows to utilize them within smart-contracts and dApps. The network nodes will stand guard preventing assets from copy making.

Mining with Docker

First, install Docker and Docker Compose.

Run the following command to run the Node and a miner:

cp docker-compose.override.yml.example docker-compose.override.yml
// TODO: put your `MEMO_SEED` and `ADDRESS` in `docker-compose.override.yml`
docker compose build
docker compose up

---How to contribute---

In order to contribute on solving the global digital transformation challenge feel free to implement or develop new recognition algorithms into pass3d toolkt (e.x.face recognition, fingerprint recognition, radio signal, 2D drawings, melody, voice, 3D objects, etc.) or make your suggessions about. It always encourages that developers contribute to 3DPass growth, would it be miner tools, network features, dApps, smart-contracts, impementations, new projects and ideas etc. Dive down into 3DPass contribution rewards program

Join 3Dass community:

---How to contribute---

Integration

Given the fact that 3DPass is an open source and non-profit project, meaning anyone can add to development, there is an eco-system scheme (exposed down below) representing general functional elements:

  • 3DPass NODE (based on Substrate) - wallets, dApps, smart-contracts, IoT devices integration using API and RPC
  • Pass3d and p3d recognition toolkit - recognition algorithms integration

This toolkit consists of stable recognition algorithms used for identification of things (3D objects and others, learn more >> ). Since the recognition technology is what the digital transformation process of anything is beginning from, and the result of the processing would always be its HASH ID, it implies every application, integrated into 3DPass eco-system, to have Pass3d or p3d toolkit implemented.

  • Proof of Scan consensus - the logic, using 3D objects recognition toolkit, that allows network participants to agree on the state of the blockchain

  • 3DPass light wallet - desktop users and 3D printing labs integration

  • Pass3d mobile - smartphone and tablets users integration

  • Smart contracts toolkit - Substrate based smart contract tools using ink, a Rust-based embedded domain specific language (eDSL) for writing WebAssembly smart contracts. Learn more about how it compares to Solidity. As well, it allows unmodified EVM code to be executed in the 3DPass blockchain. Some special Substrate fetures are designed to closely emulate the functionality of executing contracts on the Ethereum mainnet within the 3DPass network.

  • IPFS storage - embedded decentralized storage for assets

  • RPC (remote procedure call) - the capabilities that allow blockchain users to interact with the network. The NODE provides HTTP and WebSocket RPC servers

  • Networking: we use the libp2p networking stack to allow the nodes in the network to communicate with one another.

Architecture

Getting Started

Follow the steps below to get started with the 3DPass Node:

Using Nix

Install nix and optionally direnv and lorri for a fully plug and play experience for setting up the development environment. To get all the correct dependencies activate direnv direnv allow and lorri lorri shell.

Rust Setup

First, complete the basic Rust setup instructions.

Run

Use Rust's native cargo command to build and launch the template node:

cargo run --release -- --dev --tmp

Build

The cargo run command will perform an initial build. Use the following command to build the node without launching it:

cargo build --release

Embedded Docs

Once the project has been built, the following command can be used to explore all parameters and subcommands:

./target/release/poscan-consensus -h

Run

The provided cargo run command will launch a temporary node and its state will be discarded after you terminate the process. After the project has been built, there are other ways to launch the node.

Single-Node Development Chain

This command will start the single-node development chain with persistent state:

./target/release/poscan-consensus --dev

Purge the development chain's state:

./target/release/poscan-consensus purge-chain --dev

Start the development chain with detailed logging:

RUST_BACKTRACE=1 ./target/release/poscan-consensus -ldebug --dev

Multi-Node Local Testnet

Clear keystore for Alice and Bob:

rm -R /tmp/alice/ /tmp/bob/

Import mining key for Alice into the keystore:

target/release/poscan-consensus import-mining-key //Alice --base-path /tmp/alice

Run the first Node with the Alice's pub key:

target/release/poscan-consensus --base-path /tmp/alice --chain local --alice --port 30333 --ws-port 9944 --rpc-port 9933 --unsafe-rpc-external --node-key 0000000000000000000000000000000000000000000000000000000000000001 --validator -lposcan=debug --author 0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d

Run the second Node:

target/release/poscan-consensus --base-path /tmp/bob --chain local --bob --port 30334 --ws-port 9945 --rpc-port 9934  --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp --validator

For more details, refer to Subsrtate Start a Private Network tutorial.

Install miner (You have to install NodeJS v16 and Yarn before)):

yarn

Run miner:

yarn miner

Join the remote Testnet

In order to join the Mainnet and get rewarded follow the link down below:

About

Implementation of 3DPass Node. Proof of Scan decentralized blockchain platform for tokenization of things, preventing assets form copy making. Useful smart-contracts and dApps.

https://3dpass.org/

License:GNU General Public License v3.0


Languages

Language:Rust 91.3%Language:JavaScript 7.6%Language:Dockerfile 0.6%Language:Shell 0.5%Language:Makefile 0.0%