Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 1.17 KB

README.md

File metadata and controls

26 lines (23 loc) · 1.17 KB

gdpr-sgx

compile and deploy

  1. $ cd comsgxtrial
  2. $ mvn package
  3. $ ls target/ com.sgxtrial.war
  4. $ cp com.sgxtrial.war $TOMCAT/webapps/
  5. $ restart tomcat, then visit http://localhost:8080/com.sgxtrial/webclient.html

javascript files

java files

  • EnclaveThreadManager is a file to init EnclaveBridge
  • WebSocketServer.java is a file to handle websocket connections from browser.
    • OnMessages is called every time when new byte[] incoming, it should pass byte[] directly to enclave, and gets byte[] from enclave and send back to javascript.