BCS

所属分类:区块链开发
开发工具:HTML
文件大小:16672KB
下载次数:0
上传日期:2019-03-04 23:29:25
上 传 者sh-1993
说明:  BCS,一个基于区块链的去中心化人群感知系统
(BCS,A Blockchain-based Decentralized Crowd-sensing System)

文件列表:
index-requester.html (12218, 2019-03-05)
index-worker.html (11684, 2019-03-05)
main.css (483, 2019-03-05)
node_modules (0, 2019-03-05)
node_modules\.bin (0, 2019-03-05)
node_modules\.bin\browser-sync (27, 2019-03-05)
node_modules\.bin\dev-ip (23, 2019-03-05)
node_modules\.bin\lite-server (30, 2019-03-05)
node_modules\.bin\lt (25, 2019-03-05)
node_modules\.bin\mime (14, 2019-03-05)
node_modules\.bin\semver (20, 2019-03-05)
node_modules\.bin\sshpk-conv (23, 2019-03-05)
node_modules\.bin\sshpk-sign (23, 2019-03-05)
node_modules\.bin\sshpk-verify (25, 2019-03-05)
node_modules\.bin\throttleproxy (39, 2019-03-05)
node_modules\.bin\uuid (16, 2019-03-05)
node_modules\.bin\window-size (21, 2019-03-05)
node_modules\accepts (0, 2019-03-05)
node_modules\accepts\HISTORY.md (4736, 2019-03-05)
node_modules\accepts\LICENSE (1167, 2019-03-05)
node_modules\accepts\index.js (5252, 2019-03-05)
node_modules\accepts\package.json (2301, 2019-03-05)
node_modules\after (0, 2019-03-05)
node_modules\after\.npmignore (22, 2019-03-05)
node_modules\after\.travis.yml (122, 2019-03-05)
node_modules\after\LICENCE (1050, 2019-03-05)
node_modules\after\index.js (685, 2019-03-05)
node_modules\after\package.json (1464, 2019-03-05)
node_modules\after\test (0, 2019-03-05)
node_modules\after\test\after-test.js (2147, 2019-03-05)
node_modules\ajv (0, 2019-03-05)
node_modules\ajv\.tonic_example.js (435, 2019-03-05)
node_modules\ajv\LICENSE (1085, 2019-03-05)
node_modules\ajv\dist (0, 2019-03-05)
node_modules\ajv\dist\ajv.bundle.js (276744, 2019-03-05)
... ...

# BCS — A simple Blockchain-based Crowdsensing System Here we use a simple wifi-sensing task as an instance to show how our framework works. Detailed introduction at: https://ohyoukillkenny.github.io/blog/2018/04/10/LearnSolidity5/ #### Installation: 1. Configure [MetaMask](https://karl.tech/learning-solidity-part-1-deploy-a-contract/) in google chrome. 2. Install web3.js, detailed at [official documents](https://github.com/ethereum/wiki/wiki/JavaScript-API). Then, in order to achieve the interaction between web3.js and smart contract, we need to build a virtualized server for local webpages. Here, we use lite-server to achieve this goal, which can be installed by: 3. Input text in Command Line under the folder of web.js: ``` >> npm install lite-server --save-dev ``` **Notes**: If web.js is installed globally in the prior operation, the user needs to text in`npm init` first. 4. open **package.json**, add text below in`scripts`: ``` "scripts": { "dev": "lite-server" }, ``` 5. If you want to play the role as the requester, you need to rename **index-requester.html** as **index.html** first; So as the worker, you need to rename **index-worker.html** as **index.html** first. 6. After we get the **index.html** under current directory, text code below in the Command Line: ``` >> npm run dev ``` **Important:** You can find more detailed configuration at [Youtube Video](https://coursetro.com/posts/code/103/Solidity-Inheritance-and-Deploying-an-Ethereum-Smart-Contract).

近期下载者

相关文件


收藏者