Skip to content

Commit

Permalink
Merge pull request #3 from mh739025250/main
Browse files Browse the repository at this point in the history
[doc] change some param names
  • Loading branch information
lencyforce authored Nov 10, 2021
2 parents cb28c4a + 1dce282 commit 847e8ef
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 92 deletions.
88 changes: 44 additions & 44 deletions docs/contracts_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ events:
[PartnerSelected](#PartnerSelected)


### startCalculate
### startCalculation

Start calculating phase and at the same time close the secret sharing phase.
The address of those who has done the secret sharing will be broadcasted via events
Expand Down Expand Up @@ -90,7 +90,7 @@ returns:
| commitment | bytes | the hash of this commitment |


### startAggregate
### startAggregation

start aggregating phase as well as ending calculating phase, broadcasting
the address list of clients who has uploaded result.
Expand Down Expand Up @@ -120,8 +120,8 @@ params:
| --- | --- | --- |
| taskID | bytes32 | task ID |
| round | uint64 | the sequence number of round |
| owner | address | the owner address |
| sharee | address | the sharee address |
| sender | address | the sender address |
| receiver | address | the receiver address |

returns:

Expand Down Expand Up @@ -178,8 +178,8 @@ params:
| --- | --- | --- |
| taskID | bytes32 | task ID |
| round | uint64 | the sequence number of round |
| owner | address| seed owner |
| sharee | address | seed sharee |
| sender | address| seed sender |
| receiver | address | seed receiver |
| seedCommitment | bytes | seed hash |

events:
Expand All @@ -195,8 +195,8 @@ params:
| --- | --- | --- |
| taskID | bytes32 | task id |
| round | uint64 | the sequence number of round |
| owner | address| secret key owner |
| sharee | address | secret key sharee |
| sender | address| secret key sender |
| receiver | address | secret key receiver |
| skCommitment | bytes | secret key hash |

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

events:
Expand All @@ -247,8 +247,8 @@ params:
| --- | --- | --- |
| taskID | bytes32 | task ID |
| round | uint64 | the sequence number of round |
| owner | address | owner of SK2 (must be an offline clients in this context) |
| skmask | bytes | piece of SK2 |
| sender | address | sender of SK2 (must be an offline clients in this context) |
| skMask | bytes | piece of SK2 |

events:
[SecretKeyUploaded](#SecretKeyUploaded)
Expand All @@ -262,7 +262,7 @@ params:

| name | type | description |
| --- | --- | --- |
| taskId | bytes32 | task id |
| taskID | bytes32 | task id |
| round | uint64 | the sequence number of round |

events:
Expand All @@ -279,129 +279,129 @@ params:

|name | type | description |
|--- | --- | --- |
| creator | address | creator address |
| taskId | bytes32 | task id |
| address | address | address of node which create this task |
| taskID | bytes32 | task id |
| dataSet | string | dataset name |
| creatorUrl | string | server url provided by creator|
| url | string | server url of the node |
| commitment | bytes32 | training code hash|

### RoundStarted
triggered upon starting a new round

event RoundStarted(bytes32 taskId,uint64 round);
event RoundStarted(bytes32 taskID,uint64 round);
|name | type | description |
| --- | --- | --- |
| taskId | string | task Id|
| taskID | string | task ID|
| round | uint64 | the sequence number of round |

### RoundEnded
triggered upon finishing round

event RoundEnded(bytes32 taskId,uint64 round);
event RoundEnded(bytes32 taskID,uint64 round);
|name | type | description |
| --- | --- | --- |
| taskId | string | task id|
| taskID | string | task id|
| round | uint64 | the sequence number of round |


### PartnerSelected
triggered upon task developer selecting candidates


event PartnerSelected(bytes32 taskId,uint64 round,address[] addrs);
event PartnerSelected(bytes32 taskID,uint64 round,address[] addrs);
|name | type | description |
| --- | --- | --- |
| taskId | string | task Id|
| taskID | string | task ID|
| round | uint64 | the sequence number of round |
| addrs | address[] | chosen addresses |


### AggregateStarted

triggered upon the inauguration of aggregating phase
event AggregatStarted(bytes32 taskId,uint64 round,address[] addrs);
event AggregatStarted(bytes32 taskID,uint64 round,address[] addrs);
|name | type | description |
| --- | --- | --- |
| taskId | string | task id|
| taskID | string | task id|
| round | uint64 | the sequence number of round |
| addrs | address[] | online addresses |

### CalculateStarted

triggered upon the moment of task developer deciding to calculate gradients
event CalculateStarted(bytes32 taskId,uint64 round,address[] addrs);
event CalculateStarted(bytes32 taskID,uint64 round,address[] addrs);

|name | type | description |
| --- | --- | --- |
| taskId | string | task id|
| taskID | string | task id|
| round | uint64 | the sequence number of round |
| addrs | address[] | computation nodes that has finished secret sharing |

### SeedUploaded
triggered upon seed uploading succeeded
event SeedUploaded(bytes32 taskId,uint64 round,address owner,address sharee,bytes content);
event SeedUploaded(bytes32 taskID,uint64 round,address sender,address receiver,bytes content);

|name | type | description |
| --- | --- | --- |
| taskId | string | task Id|
| taskID | string | task ID|
| round | uint64 | the sequence number of round |
| owner | address | owner address |
| sharee | address | sharee address |
| sender | address | sender address |
| receiver | address | receiver address |
| seed | bytes | seed |


### SeedCommitmentUploaded
triggered upon seed commitment uploading succeeded

event SeedCommitmentUploaded(bytes32 taskId,uint64 round,address owner,address sharee,bytes content);
event SeedCommitmentUploaded(bytes32 taskID,uint64 round,address sender,address receiver,bytes content);

|name | type | description |
| --- | --- | --- |
| taskId | string | task Id|
| taskID | string | task ID|
| round | uint64 | the sequence number of round |
| owner | address | owner address |
| sharee | address | sharee address |
| sender | address | sender address |
| receiver | address | receiver address |
| content | bytes | seed hash |


### SecretKeyCommitmentUploaded
triggered upon SecretKey commitment uploading succeeded

event SecretKeyCommitmentUploaded(bytes32 taskId,uint64 round,address owner,address sharee,bytes content);
event SecretKeyCommitmentUploaded(bytes32 taskID,uint64 round,address sender,address receiver,bytes content);

|name | type | description |
| --- | --- | --- |
| taskId | string | task id|
| taskID | string | task id|
| round | uint64 | round number |
| owner | address | owner address |
| sharer | address | sharee address |
| sender | address | sender address |
| receiver | address | receiver address |
| content | bytes | sk2 hash |


### SecretKeyUploaded
triggered upon SecretKey uploading succeeded

event SeedCommitmentUploaded(bytes32 taskId,uint64 round,address owner,address sharer,bytes content);
event SeedCommitmentUploaded(bytes32 taskID,uint64 round,address sender,address receiver,bytes content);

|name | type | description |
| --- | --- | --- |
| taskId | string | task Id|
| taskID | string | task ID|
| round | uint64 | round number |
| owner | address | owner address |
| sharee | address | sharee address |
| sender | address | sender address |
| receiver | address | receiver address |
| content | bytes | sk2 |


### ResultUploaded

triggered upon Result uploading succeeded
event ResultUploaded(bytes32 taskId,uint64 round,address owner,bytes content);
event ResultUploaded(bytes32 taskID,uint64 round,address sender,bytes content);

|name | type | description |
| --- | --- | --- |
| taskId | string | task Id|
| taskID | string | task ID|
| round | uint64 | round number |
| owner | address | owner address |
| sender | address | sender address |
| content | bytes | result |


Loading

0 comments on commit 847e8ef

Please sign in to comment.