Skip to content

Commit

Permalink
Merge pull request #6 from mh739025250/main
Browse files Browse the repository at this point in the history
rename DeltaContract to HFLContract; update document
  • Loading branch information
mh739025250 authored Dec 10, 2021
2 parents 3814674 + 9ea0f61 commit 509c624
Show file tree
Hide file tree
Showing 5 changed files with 6,953 additions and 2,844 deletions.
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

0 comments on commit 509c624

Please sign in to comment.