Commit graph

7 commits

Author SHA1 Message Date
Leonard Lyubich
74e917810a service: support broken apart signable payload of the requests
In previous implementation service package provided types and functions
that wrapped signing/verification of data with session token.
This allowed us to use these functions for signing / verification of
service requests of other packages. To support the expansion of messages
with additional parts that need to be signed, you must be able to easily
expand the signed data with new parts.

To achieve the described goal, this commit makes the following changes:

  * adds GroupSignedPayloads and GroupVerifyPayloads functions;

  * renames SignedDataWithToken to RequestData, DataWithTokenSignAccumulator
    to RequestSignedData, DataWithTokenSignSource to RequestVerifyData;

  * renames SignDataWithSessionToken/VerifyAccumulatedSignaturesWithToken
    function to SignRequestData/VerifyRequestData and makes it to use
    GroupSignedPayloads/GroupVerifyPayloads internally.
2020-06-10 20:37:10 +03:00
Leonard Lyubich
ab198b4049 state: implement SignedDataSource on ChangeStateRequest message 2020-05-11 16:31:39 +03:00
Leonard Lyubich
5545b25a95 state: implement SignedDataSource on DumpVarsRequest message 2020-05-11 16:16:54 +03:00
Leonard Lyubich
603db9c325 state: implement SignedDataSource on DumpRequest message 2020-05-11 16:15:31 +03:00
Leonard Lyubich
ea12eabaf6 state: implement SignedDataSource on HealthRequest message 2020-05-11 16:14:29 +03:00
Leonard Lyubich
df9a04e542 state: implement SignedDataSource on MetricsRequest message 2020-05-11 16:11:17 +03:00
Leonard Lyubich
539e93e558 state: implement SignedDataSource on NetmapRequest message 2020-05-11 16:10:08 +03:00