Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix module name in README and comments #238

Merged
merged 8 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions c-pallets/audit/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Segment Book Module
# Audit Module
This file is the exclusive pallet of cess and the proof of podr2 adaptation

## OverView

The job of this segment Book pallet is to process the proof of miner's service file and filling file, and generate random challenges. Call some traits of Smith pallet to punish miners. Call the trail of file bank pallet to obtain random files or files with problems in handling challenges.
The job of this aduit pallet is to process the proof of miner's service file and filling file, and generate random challenges. Call some traits of Smith pallet to punish miners. Call the trail of file bank pallet to obtain random files or files with problems in handling challenges.

### Terminology

Expand Down
4 changes: 2 additions & 2 deletions c-pallets/audit/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//! # Segemnt Book Module
//! # Audit Module
//!
//! This file is the exclusive pallet of cess and the proof of podr2 adaptation
//!
//! ## OverView
//!
//! The job of this segment Book pallet is to process the proof of miner's service file and filling
//! The job of this audit pallet is to process the proof of miner's service file and filling
//! file, and generate random challenges. Call some traits of Smith pallet to punish miners.
//! Call the trail of file bank pallet to obtain random files or files with problems in handling
//! challenges.
Expand Down
18 changes: 9 additions & 9 deletions docs/designs-of-storage-mining.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Designs of Storage Mining

Segment book is the interface about proof of storage, which mainly deals with the proofs submission and verification of the data segments.
Audit is the interface about proof of storage, which mainly deals with the proofs submission and verification of the data segments.

![Image](https://raw.githubusercontent.com/CESSProject/W3F-illustration/main/cess-v0.1.1/Substrate-Node-Template-2.png)

Expand All @@ -13,16 +13,16 @@ Segment book is the interface about proof of storage, which mainly deals with th

```
//pool of the proof of replication(PoRep) ready to verify which is generated by idle segment
VerPoolA = StorageDoubleMap<accountid, segemnt_id, (is_ready, size_type, proof, sealed_cid, rand, block_num)>
VerPoolA = StorageDoubleMap<accountid, segment_id, (is_ready, size_type, proof, sealed_cid, rand, block_num)>

//pool of the proof of space time(PoSt) ready to verify which is generated by idle segment
VerPoolB = StorageDoubleMap<accountid, segemnt_id, (is_ready, size_type, proof, sealed_cid, rand, block_num)>
VerPoolB = StorageDoubleMap<accountid, segment_id, (is_ready, size_type, proof, sealed_cid, rand, block_num)>

//pool of PoRep verified which is generated by idle segment
PrePoolA = StorageDoubleMap<accountid, segemnt_id, (size_type, proof, sealed_cid, block_num)>
PrePoolA = StorageDoubleMap<accountid, segment_id, (size_type, proof, sealed_cid, block_num)>

//pool of PoSt verified which is generated by idle segment
PrePoolB = StorageDoubleMap<accountid, segemnt_id, (size_type, proof, sealed_cid, block_num)>
PrePoolB = StorageDoubleMap<accountid, segment_id, (size_type, proof, sealed_cid, block_num)>

//count the total block height of all idle segments of miner
BlockNumberB = StorageMap<accountid, (block_num, total_num)>
Expand Down Expand Up @@ -124,16 +124,16 @@ begin with input(sender, peer_id, segment_id, result):

```
//pool of PoRep ready to verify which is generated by service segment
VerPoolC = StorageDoubleMap<accountid, segemnt_id, (is_ready, size_type, proof, sealed_cid, rand, block_num)>
VerPoolC = StorageDoubleMap<accountid, segment_id, (is_ready, size_type, proof, sealed_cid, rand, block_num)>

//pool of PoSt ready to verify which is generated by service segment
VerPoolD = StorageDoubleMap<accountid, segemnt_id, (is_ready, size_type, proof, sealed_cid, rand, block_num)>
VerPoolD = StorageDoubleMap<accountid, segment_id, (is_ready, size_type, proof, sealed_cid, rand, block_num)>

//pool of PoRep verified which is generated by service segment
PrePoolC = StorageDoubleMap<accountid, segemnt_id, (size_type, proof, sealed_cid, block_num)>
PrePoolC = StorageDoubleMap<accountid, segment_id, (size_type, proof, sealed_cid, block_num)>

//pool of PoSt verified which is generated by service segment
PrePoolD = StorageDoubleMap<accountid, segemnt_id, (size_type, proof, sealed_cid, block_num)>
PrePoolD = StorageDoubleMap<accountid, segment_id, (size_type, proof, sealed_cid, block_num)>

//count the total block height of all service segments of miner
BlockNumberD = StorageMap<accountid, (block_num, total_num)>
Expand Down
Loading