Skip to content

PeterCCLiu/beiss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BEISS

Blockchain-enabled IoT Security Suite

How to use: (for now)

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
  • 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

Other Dependencies:

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)

Known issues:

-[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