Commit graph

13 commits

Author SHA1 Message Date
eafcbff11f Rename go package names
Due to source code relocation from GitHub.

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
2023-03-07 11:50:02 +03:00
7431075ca1 Rename go package names
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2022-12-11 12:18:48 +03:00
Elizaveta Chichindaeva
f233a2fd67 [#216] English Check
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
2022-05-12 15:06:51 +03:00
Leonard Lyubich
7ea5a1d2f1 [#150] *: Write status-related docs
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-11-16 09:46:14 +03:00
Stanislav Bogatyrev
37e13c5475 reputation: Rename and reformat
* Rename:
  - SendLocalTrust → AnnounceLocalTrust
  - SendIntermediateResult → AnnounceIntermediateResult

  Those methods don't expect to Send anything, but to further announce
  the trust information from the node.

* Change PeerID to explicitly use public key as a node identifier

* Minor comments reformat

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2021-05-07 11:52:40 +03:00
Pavel Karpy
b50b951dd0 [#149] reputation: Change SendIntermediateResultRequest.Body
Add `epoch` field to the `SendIntermediateResultRequest.Body`
message.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-05-07 11:52:40 +03:00
Leonard Lyubich
028f9e8c1a [#143] reputation: Change SendIntermediateResultRequest.Body.trust type
Change `trust` field type of `SendIntermediateResultRequest.Body` message to
`PeerToPeerTrust` since `SendIntermediateResult` call transfers the node's
directed trust to the node.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-07 11:52:40 +03:00
Leonard Lyubich
6d572e78ff [#143] reputation: Define peer-to-peer trust message
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-07 11:52:40 +03:00
Leonard Lyubich
453beb8c34 [#143] reputation: Add version field to GlobalTrust message
Add `version` field as a first field of `GlobalTrust` message. This field
will allow you to quickly extract the version of the message from the binary
representation.

Additionally fix `signature` field's package format.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-07 11:52:40 +03:00
Leonard Lyubich
3b78785e57 [#143] reputation: Define global trust message structure
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-07 11:52:40 +03:00
Leonard Lyubich
5bf79d3dbf [#143] reputation: Add dedicated type for peer ID
Define `PeerID` message. Change `Trust.peer` field type to `PeerID`.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-07 11:52:40 +03:00
Leonard Lyubich
f4974b0e44 [#143] reputation: Add SendIntermediateResult RPC
Add `SendIntermediateResult` RPC to `ReputationService`. Define structures
of request and response messages.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-07 11:52:40 +03:00
Leonard Lyubich
b334bada34 [#143] Add proto definitions of Reputation service
Define `Trust` message structure. Define `ReputationService` service. Add
`SendLocalTrust` RPC to `ReputationService`. Define structures of request
and response messages.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-07 11:52:40 +03:00