How to Use FLC

Use FLC to tokenize any hardware device and join Flowchain networks.

To become a Flowchain hybrid node block producer (referred as "Validator" or "Miner"), the Validator have to proof the stake.

Step 1: Deposit FLC

Use an ERC-20 digital asset wallet, and depositing a certain amount of FLC. We suggest a minimum amount of 200 FLC.

Step 2: Sign Verification Message

Use MyCrypto to sign the following message with your FLC wallet address. The message format is as the following.

  [Flowchain.io DEVICE_ID EMAIL WALLET_ADDRESS]

Fields:

  • DEVICE_ID: Fill the device id which you've registered
  • EMAIL: Fill the email address which you 've registered
  • WALLET_ADDRESS: Fill the FLC wallet address

Example:

[Flowchain.io hello@flowchain.io 0xc85b0B3DC93e6BE5A15df75F89AcC6855CBf4252]

Step 3: Setup Flowchain Hybrid

Download Flowchain Hybrid:
  $ git clone https://github.com/flowchain/flowchain-hybrid
  $ cd flowchain-hybrid
  $ npm install
Open index.js and setup the miner wallet address:
var miner = new Miner({
    // Use Flowchain testnet
    servers: [
      {
        id: 0,
        host: "testnet.pool.flowchain.io",
        port: process.env.POOL_PORT || 3333
      }
    ],
    apiServer: {
      host: process.env.API_HOST || '127.0.0.1',
      port: process.env.API_PORT || '55752'
    },
    // the server id to use    
    serverId: 0,
    worker: "flowchain-testnet",
    miner: 'PLEASE PUT YOUR SIGNED MINER ADDRESS HERE'
  });
Notice: Node.js 8+ is required. Please refer to flowchain-hybrid/README.md for detailed instructions.

Step 3: Start Flowchain Hybrid

  $ node index.js

The Flowchain Hybrid node is a validator that it generates PPKI, receives data chunks, and build virtual blocks for the IoT devices. The validator submits transactions of virtual blocks to the public blockchain for verification as well.

For more technical details, please refer to Flowchain Academic Papers.