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
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