Skip to content

Commit

Permalink
0.7.0 space prove (#215)
Browse files Browse the repository at this point in the history
* style: delete some deprecated func

* feat: 0.6.1 miner register

* feat: idle space certification

* feat: 0.6.1 replace_file_report

* feat: random challenge

* feat: clear verify

* style: update field type

* feat: hash binary

* feat: add bloom filter for service file

* fix: generate challenge

* feat: random challenge add bloomfilter

* style: challenge func name

* fix: challenge select miner.

* fix: temporary adjustment of reallocation time interval and frequency limit

* fix: temporary adjustment of reallocation time interval and frequency limit

* fix: receive reward to controller

* feat: increase the maximum number of reassignments

* feat: whitelist deduplication

* feat: benchmark fixing

* Revert "fix: receive reward to controller"

This reverts commit 2fc7db0.

* fix: challenge index bounded

* feat: add benchmark command

* feat: tee worker benchmark

* feat: sminer benchmark

* feat: reassign miner

* style: delete extra code

* style: add filebank benchmark

* fix: upload file reassign miner

* feat: add tee_signature field

* feat: add new field in struct IdleSigInfo

* feat: add new field in miner snapshot

* fix: upload reassign lock_space

* feat: update and verify the original text of sgx signature, store tee_signature

* feat: modify replace file interface

* feat: maximum number of reassignments

* feat: principle of optimizing random allocation

* feat: benchmark update

* fix: failed count  >= 5

* feat: challenge snapshot to add new fields

* feat: update benchmark

* fix: overflow

* feat: upload declaration benchmark

* feat: benchmark

* feat: some modifications made for safety or other module convenience

* style: code structure optimization, vec capacity review

* style: optimize code structure

* style: separate faucet account and reward account

* style: boundevec const

* fix: repair potential hazards

* style: boundedvec update

* style: restructuring the architecture to transfer miners' exit from the series of related transactions from fileBank to Sminer within

* feat: replace transaction signature object

* fix: fix bug in submitting proof of verification result transactions, fix bug in reallocating verification results

* fix: miner forced exit, error creating recovery target

* fix: lifetime calculation method for updating validation certificates

* feat: oss author

* test: update expender

* style: update version 0.6.0 -> 0.7.0

* feat: add benchmark

* feat: add rust-toolchain.toml. lock toolchain

* fix: resolve compilation errors caused by merging branches

* feat: file-bank some benchmarks

* feat: sminer pallet miner_exit and miner_exit_per

* feat: filebank pallet benchmark

* feat: add some func for testing

* fix: fix authorization exclusive bug

* fix: challenge to clear verification results

* fix: improve the verification of tee worker report

* feat: add credit score

* fix: reward pool after additional pledge after repairing liabilities

* feat: storage handler pallet benchmark
  • Loading branch information
ytqaljn committed Aug 24, 2023
1 parent 9a60c9a commit a80ee91
Show file tree
Hide file tree
Showing 49 changed files with 4,525 additions and 2,706 deletions.
52 changes: 40 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 22 additions & 17 deletions c-pallets/audit/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pallet-audit"
authors = ["CESS LAB"]
version = "0.6.0"
version = "0.7.0"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/CESSProject/cess"
Expand All @@ -16,9 +16,14 @@ codec = { package = "parity-scale-codec", version = "3.0.0", default-features =
scale-info = { default-features = false, features = ['derive'], version = "2.0.1" }
log = { version = "0.4.14", default-features = false }
pallet-cess-staking = { path = '../staking', version = '4.0.0-dev', default-features = false }
cp-cess-common = { path = '../../primitives/common', version = '0.1.0', default-features = false }
pallet-preimage = { version = "4.0.0-dev", default-features = false, git = 'https://github.com/CESSProject/substrate.git', branch = "cess-polkadot-v0.9.36" }

# local pallet
cp-bloom-filter = { path = '../../primitives/bloom-filter', version = '0.1.0', default-features = false }
cp-scheduler-credit = { path = '../../primitives/scheduler-credit', version = '0.1.0', default-features = false }
cp-cess-common = { path = '../../primitives/common', version = '0.1.0', default-features = false }
cp-enclave-verify = { path = '../../primitives/enclave-verify', version = '0.1.0', default-features = false }

[dependencies.frame-benchmarking]
default-features = false
git = 'https://github.com/CESSProject/substrate.git'
Expand Down Expand Up @@ -78,13 +83,25 @@ version = '7.0.0'
[dependencies.pallet-file-bank]
default-features = false
path = '../file-bank'
version = '0.6.0'
version = '0.7.0'

# local dependencies
[dependencies.pallet-sminer]
default-features = false
path = '../sminer'
version = '0.6.0'
version = '0.7.0'

# local dependencies
[dependencies.pallet-tee-worker]
default-features = false
path = '../tee-worker'
version = '0.7.0'

# local dependencies
[dependencies.pallet-storage-handler]
default-features = false
path = '../storage-handler'
version = '0.7.0'

[dev-dependencies.frame-support-test]
default-features = false
Expand All @@ -104,17 +121,6 @@ git = 'https://github.com/CESSProject/substrate.git'
branch = "cess-polkadot-v0.9.36"
version = '4.0.0-dev'

# local dependencies
[dependencies.pallet-tee-worker]
default-features = false
path = '../tee-worker'
version = '0.6.0'

[dependencies.pallet-storage-handler]
default-features = false
path = '../storage-handler'
version = '0.6.0'

[dev-dependencies]
pallet-cess-staking = { path = '../staking', version = '4.0.0-dev', default-features = false}
sp-staking = { version = "4.0.0-dev", default-features = false, git = "https://github.com/CESSProject/substrate.git", branch = "cess-polkadot-v0.9.36" }
Expand All @@ -125,9 +131,8 @@ pallet-session = { version = "4.0.0-dev", default-features = false, features = [
], git = "https://github.com/CESSProject/substrate.git", branch = "cess-polkadot-v0.9.36" }
pallet-bags-list = { version = "4.0.0-dev", git = "https://github.com/CESSProject/substrate.git", branch = "cess-polkadot-v0.9.36" }
pallet-scheduler-credit = { version = "0.1.0", default-features = false, path = '../scheduler-credit'}
cp-scheduler-credit = { path = '../../primitives/scheduler-credit', version = '0.1.0', default-features = false }
cp-cess-common = { path = '../../primitives/common', version = '0.1.0', default-features = false }
pallet-oss = { path = '../oss', version = '0.6.0', default-features = false }
pallet-oss = { path = '../oss', version = '0.7.0', default-features = false }

[features]
default = ["std"]
Expand Down
Loading

0 comments on commit a80ee91

Please sign in to comment.