Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

3Dpass/miner

Repository files navigation

About

Simple CPU miner app for Proof of Scan. It generates random-shaped 3D models and sends them to the local node via mining RPC like this:

{
    "jsonrpc":"2.0",
    "id":1",
    "method":"push_mining_object",
    "params": [
        1,
        "o\n
v 0.05508197844028473 0.7671535015106201 -0.14178061485290527\n
v 0.05349433422088623 0.764365017414093 -0.10946107655763626\n
v 0.04743874818086624 0.7608485817909241 -0.07884219288825989\n
            ]
}

Where as one of the parameters is the content of 3D model in .obj format, but with \n added at the end of each line.

v 0.05508197844028473 0.7671535015106201 -0.14178061485290527\n
v 0.05349433422088623 0.764365017414093 -0.10946107655763626\n
v 0.04743874818086624 0.7608485817909241 -0.07884219288825989\n

Install

You have to have Yarn installed on your computer. If you have, use this command to install miner:

yarn

Start Mining:

  1. Start 3DP local node
  2. Run miner:
yarn miner

Save 3D model:

yarn miner --save

3D model generated will be saved in the project folder as rock.obj file

Releases

No releases published

Packages

No packages published