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

rename DeltaContract to HFLContract; update document #6

Merged
merged 4 commits into from
Dec 10, 2021
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
6 changes: 3 additions & 3 deletions contracts/DeltaContract.sol → contracts/hfl.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ pragma solidity >=0.7.0 <0.9.0;
import "./Identity.sol";

/**
* @title Delta Contract
* @dev Delta Contract For Mpc
* @title Horizontal Federated Learning Task Contract
* @dev Horizontal Federated Learning Task Contract
*/
contract DeltaContract {
contract HFLContract {
IdentityContract public idContract;

address private owner;
Expand Down
4 changes: 1 addition & 3 deletions docs/contracts_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ params:
| --- | --- | --- |
| taskID | bytes32 | task ID |
| round | uint64 | the sequence number of round |
| sender | address| seed sender |
| receiver | address | seed receiver |
| seedCommitment | bytes | seed hash |

Expand All @@ -216,7 +215,6 @@ params:
| --- | --- | --- |
| taskID | bytes32 | task id |
| round | uint64 | the sequence number of round |
| sender | address| secret key sender |
| receiver | address | secret key receiver |
| skCommitment | bytes | secret key hash |

Expand Down Expand Up @@ -251,7 +249,7 @@ params:
| --- | --- | --- |
| taskID | bytes32 | task id |
| round | uint64 | the sequence number of round |
| receiver | address | receiver address |
| sender | address | sender address |
| seed | bytes | seed to upload |

events:
Expand Down
4 changes: 1 addition & 3 deletions docs/contracts_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ params:
| --- | --- | --- |
| taskID | bytes32 | 任务ID |
| round | uint64 | 轮次 |
| sender | address| 随机种子的拥有者 |
| recevier | address | 秘密分享的目标 |
| seedCommitment | bytes | 随机种子的哈希 |

Expand All @@ -209,7 +208,6 @@ params:
| --- | --- | --- |
| taskID | bytes32 | 任务ID |
| round | uint64 | 轮次 |
| sender | address| 随机种子的拥有者 |
| receiver | address | 秘密分享的目标 |
| skCommitment | bytes | SK2的哈希 |

Expand Down Expand Up @@ -243,7 +241,7 @@ params:
| --- | --- | --- |
| taskID | bytes32 | 任务ID |
| round | uint64 | 轮次 |
| receiver | address | 秘密分享的目标 |
| sender | address | 秘密分享的目标 |
| seed | bytes | 随机种子的秘密分享片段 |

events:
Expand Down
Loading