Git Product home page Git Product logo

crust-sworker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crust-sworker's Issues

Seal empty disk information into disk/chain (after test v1)

To ensure that users do not cheat, the current restart implementation mode is re-plot empty disk. This will have a huge impact on performance and program startup time.
Now consider a scheme that allows the empty disk information to be continuously and reliably stored in a certain location.

[ForklessUp] Restart TEE should report works

Currently, If TEE restart at 340 block, it won't report 300-slot work report anymore(because it only recognize the 300n block).
However, if we need do the TEE forkless-upgrade, it should report works anyway to avoid fake offline.

Httplib' bug will cause the log to be logged after the authentication is passed.

Log like:
[Mar 26 2020 16:11:25] [INFO] -----Meaningful Validation-----
[Mar 26 2020 16:11:25] [INFO] -----Empty Validation-----
[Mar 26 2020 16:11:25] [INFO] -----Validation Waiting-----
[Mar 26 2020 16:11:25] [INFO] Empty root hash: 7b231d786cbd17124fc0619bd51cf75b4b1ef10ab708b052b55154a97c8f35ee
[Mar 26 2020 16:11:25] [INFO] Empty capacity: 4G
[Mar 26 2020 16:11:25] [INFO] Meaningful work is:
[Mar 26 2020 16:11:25] [INFO] Store enclave data successfully!
[Mar 26 2020 16:11:25] [ERROR] Send to IAS failed! Trying again...(1)
[Mar 26 2020 16:11:27] [INFO] Block height:84622 is not enough!
[Mar 26 2020 16:11:30] [INFO] Sending quote to IAS service successfully!
[Mar 26 2020 16:11:30] [INFO] Verify IAS report in enclave successfully!

The TEE work report is too big

Currently work report include all the file root hash. If one node stores 10000 files. Them the work report will be very big

Todo list in testing v1

  • Environment setup and operation logic
    • Dependent installation script (sgx, cpprest, sgx-ssl, ipfs etc.)
    • Realize '.app init' command (create base config, start ipfs)
  • Signature report and network access information
  • Deal http error
  • Readme, help documentation and command
  • Use log file
  • Call the post interface to send information to chain
    • Network access information
    • Root of empty disk and meaningful files
  • Multi-node logic test

Offline mode is needed

'Development launch' needs to cooperate with the crust chain to start all processes, this is not convenient for testing, we need offline mode.

Fail to install SGX SSL by using root account

Error: /opt/sgxsdk/bin/x64/sgx_sign: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory. (ps: Preliminary research finds correlation with environmental variables for different user types)

Tee work report should add randomness

Now TEE report workloads all in same pace, this will cause N validators num reports in 1 block, add randomness in N ~ N*100 to reduce this performance issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.