Skip to content

Commit

Permalink
Ceseal tonic (#298)
Browse files Browse the repository at this point in the history
* some modifies about format files

* initail ceseal commit (WIP, inspired by phala-blockchain)

* add clean task

* Accept Rocket's optimization suggestions

* recover the register_worker_v2 api

* Make the value of GRANDPA_JUSTIFICATION_PERIOD smaller so that the CESEAL client can synchronize blocks more quickly.

* reserve the bin directory

* Modify the run scripts for easier development and debugging

* Simplify and adjust ceseal

* merge pallet-registry to pallet-tee-worker

* use `Tonic` instead of `Rocket`

* update run scripts

* update docker ignore

* missing removed bin_api_service.rs

* Migration of POIS library and PODR2 library code for Kaleido project (WIP, only code migration)

* Migration POIS module to cestory (WIP, only code migration)

* Let podr2 server made after keyfairy ready (WIP)

* make CesealExpertStub service for external services (WIP)

* feat:use podr2 key to be real key (#278)

* fix:merge conflict (#279)

* Avoid cloning the ceseal instance and to use mutex on its internal state (WIP)

* fix:mapping rsa key to identity key is overkill (#280)

* move the external service make things out of ceseal, and let pois on service

* add ceseal worker role same as kaleido

* remove `http_fetch()` method of ceseal api

* we don't need `NetworkConfig` yet

* recover the inject_key validate

* remove unused arg: use_ias

* Simplify Ceseal's public endpoint maintenance (although not simplified enough)

* fix:modify the signature provided to the miner to upload to the chain (#283)

* feat:modify podr2 and chain processing logic (#284)

* Support to handover sealed data on ceseal enclave bin update

* feat: adapt runtime for Ceseal (#287)

* feat: adapter tee

* temp save

* temp save

* fix: fix some complete error

* The changes that were missed by the last commit

* feat: support tee role (#289)

* feat: standardize payload and add exit function (#290)

* fix: payload (#291)

* fix:can't register endpoint when ciforst startup (#292)

* feat: Integrated evm wallet compatible with pallets

* feat: add cifrost dockerfile

* feat: add new version cess-node dockerfile

* enhance: use precompiled protoc binnary instead build from source

* fix: fall back payload

* remove unused arg: git_proxy

* fix: fix verify bug

* update: adjust the corresponding handling fees.

* Fix: when ceseal recovered from the checkpoint file, the keyfairy send event was missed

* Change the checkpoint interval default value to 15 minutes

* Make `make` easier to build all

* Because you missed updating `Cargo.lock` again due to `evm-account-mapping`

* fix some bug (#293)

* fix:pois commit proof verify fail

* fix:tag_sig_info_history structural change

* fix: verify tagsign when digest list is not empty

* feat: change the pois_param to those configured on the chain

* fix: missed updating Cargo.lock again

* refactor: use const variable instead of `magic number`

* chore: remove unused cli arguments

* fix: some bug

* fix:some bug in podr2 business (#294)

* fix:bug of cuz miner commit compute tag fail

* fix:compute u sig problem

* fix:some bug

* fix: some bug calculate report

* feat: distinguish the concurrency of external services based on the kind of processed requests (temporarily refer to Kaleido's configuration)

* chore: missing the affected `Cargo.lock` file again

* Ceseal tonic reward (#296)

* temp save

* feat: the new economic model.

* feat: using conditional compilation of `features` to set up `IAS` related configurations

* fix: warning and calculate reward bug

* update json

* update testnet develop

* update expenders

* fix: change the hard-code PODR2 compute thread pool to arg

* chore: some logs

* update testnet spec

* refactor: extract the dependencies of dockerfile into independent images and optimize the build time as much as possible

---------

Co-authored-by: Bill.W <[email protected]>
Co-authored-by: Demos Chiang <[email protected]>
  • Loading branch information
3 people authored Jan 31, 2024
1 parent 8a3be14 commit 55dff8c
Show file tree
Hide file tree
Showing 235 changed files with 39,433 additions and 1,050 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
DS_Store
Dockerfile
target
**/target
**/ceseal/bin/*
.github
.maintain
.vscode
docs
LICENSE
README.md
28 changes: 22 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
root = true

[*]
indent_style=space
indent_size=2
tab_width=2
indent_size=4
tab_width=4
end_of_line=lf
charset=utf-8
trim_trailing_whitespace=true
insert_final_newline = true
max_line_length=120
insert_final_newline=true

[*.{rs,toml}]
[pallets/**.rs]
indent_style=tab
indent_size=tab

[standalone/chain/{node,runtime}/**.rs]
indent_style=tab
indent_size=tab

[standalone/teeworker/{ceseal,cifrost}/**.rs]
indent_style=space
indent_size=4

[*.{yml,yaml}]
indent_style=space
indent_size=2
tab_width=2
max_line_length=100
end_of_line=lf

[scripts/**]
indent_style=space
indent_size=4
Loading

0 comments on commit 55dff8c

Please sign in to comment.