2021-07-13 17:55:32 +00:00
|
|
|
/*
|
2023-01-11 07:52:06 +00:00
|
|
|
Reputation contract is a contract deployed in FrostFS sidechain.
|
2021-07-13 17:55:32 +00:00
|
|
|
|
2022-04-14 11:56:51 +00:00
|
|
|
Inner Ring nodes produce data audit for each container during each epoch. In the end,
|
2021-07-13 17:55:32 +00:00
|
|
|
nodes produce DataAuditResult structure that contains information about audit
|
|
|
|
progress. Reputation contract provides storage for such structures and simple
|
|
|
|
interface to iterate over available DataAuditResults on specified epoch.
|
|
|
|
|
|
|
|
During settlement process, Alphabet nodes fetch all DataAuditResult structures
|
|
|
|
from the epoch and execute balance transfers from data owners to Storage and
|
2022-04-14 11:56:51 +00:00
|
|
|
Inner Ring nodes if data audit succeeds.
|
2021-07-13 17:55:32 +00:00
|
|
|
|
2022-12-12 19:59:13 +00:00
|
|
|
# Contract notifications
|
2021-07-13 17:55:32 +00:00
|
|
|
|
|
|
|
Reputation contract does not produce notifications to process.
|
2023-05-10 08:19:19 +00:00
|
|
|
|
|
|
|
# Contract storage scheme
|
|
|
|
|
|
|
|
| Key | Value | Description |
|
|
|
|
|-----------------------------|------------|-----------------------------------|
|
|
|
|
| `c` + epoch + peerID | int | peer reputation count |
|
|
|
|
| `r` + count | ByteArray | serialized DataAuditResult struct |
|
|
|
|
|
2021-07-13 17:55:32 +00:00
|
|
|
*/
|
2021-07-04 11:08:37 +00:00
|
|
|
package reputation
|