Blockchain-enabled IoT Security Suite
cd api
npm run devStart
browser: localhost:3000/healthcheck
TODOS:
- docker:
- docker-compose file
build:
dockerfile
- brew install: LLVM, wasm2wat
- docker image registry and publish
- docker-compose file
- GitHub actions for continuous CI/CD
- mongo:
- Define necessary schema, collection, db
- Implement CRUD
- frontend:
- HTML boilerplate, CSS
- React (use template)
- IoT SDK
- Partial Key Gen Part 2, in c. file
- Docs
- Docs for crypto use, gcc compile, .wasm file import, so on.
- Blockchain
- Ropsten
This project (inevitably) uses C/C++ code. Therefore we compile *.c → *.wasm → JS module.
- LLVM clang: *.c → *.wasm (compile when building docker image)
- WebAssembly: *.wasm → JS module (runtime async)
-[fixed] In local testing, fetch
a local *.wasm file is prohibited and will cause a CORS error that looks like this:
TypeError [ERR_INVALID_URL]: Invalid URL
This is due to security concerns and is caused by Chrome. See this link and this for solution.
Fix: See commit