frostfs-api-go-pogpp/container
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
..
service.go container: Support new BasicACL field 2020-04-02 15:44:18 +03:00
service.pb.go proto: Update proto library to v0.6.0 2020-04-02 15:15:59 +03:00
service.proto proto: Update proto library to v0.6.0 2020-04-02 15:15:59 +03:00
sign.go Implement signed data calculating function from SignedDataReader 2020-05-11 17:28:44 +03:00
sign_test.go service: support broken apart signable payload of the requests 2020-06-10 20:37:10 +03:00
types.go container: implement SignedDataSource on ListRequest message 2020-05-11 15:57:00 +03:00
types.pb.go proto: Update proto library to v0.6.0 2020-04-02 15:15:59 +03:00
types.proto proto: Update proto library to v0.6.0 2020-04-02 15:15:59 +03:00
types_test.go container: implement SignedDataSource on ListRequest message 2020-05-11 15:57:00 +03:00