Documentation
¶
Overview ¶
Package reputation contains implementation of Reputation contract deployed in NeoFS sidechain.
Inner Ring nodes produce data audit for each container during each epoch. In the end, 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 Inner Ring nodes if data audit succeeds.
Contract notifications ¶
Reputation contract does not produce notifications to process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶ added in v0.7.0
Get method returns a list of all stable marshaled DataAuditResult structures produced by the specified Inner Ring node during the specified epoch.
func GetByID ¶ added in v0.7.0
GetByID method returns a list of all stable marshaled DataAuditResult with the specified id. Use ListByEpoch method to obtain the id.
func ListByEpoch ¶ added in v0.7.0
ListByEpoch returns a list of IDs that may be used to get reputation data with GetByID method.
func Put ¶
Put method saves DataAuditResult in contract storage. It can be invoked only by storage nodes with Alphabet assistance (multisignature witness).
Epoch is the epoch number when DataAuditResult structure was generated. PeerID contains public keys of the Inner Ring node that has produced DataAuditResult. Value contains a stable marshaled structure of DataAuditResult.
Types ¶
This section is empty.