2021-07-13 20:55:32 +03:00
|
|
|
/*
|
2023-01-11 10:52:06 +03:00
|
|
|
Reputation contract is a contract deployed in FrostFS sidechain.
|
2021-07-13 20:55:32 +03:00
|
|
|
|
2022-04-14 14:56:51 +03:00
|
|
|
Inner Ring nodes produce data audit for each container during each epoch. In the end,
|
2021-07-13 20:55:32 +03: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 14:56:51 +03:00
|
|
|
Inner Ring nodes if data audit succeeds.
|
2021-07-13 20:55:32 +03:00
|
|
|
|
2022-12-12 22:59:13 +03:00
|
|
|
# Contract notifications
|
2021-07-13 20:55:32 +03:00
|
|
|
|
|
|
|
Reputation contract does not produce notifications to process.
|
2023-05-10 11:19:19 +03:00
|
|
|
|
|
|
|
# Contract storage scheme
|
|
|
|
|
|
|
|
| Key | Value | Description |
|
|
|
|
|-----------------------------|------------|-----------------------------------|
|
|
|
|
| `c` + epoch + peerID | int | peer reputation count |
|
|
|
|
| `r` + count | ByteArray | serialized DataAuditResult struct |
|
|
|
|
|
2021-07-13 20:55:32 +03:00
|
|
|
*/
|
2021-07-04 14:08:37 +03:00
|
|
|
package reputation
|