frostfs-api-go/session
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
..
alias.go session: replace used type aliases to separate file 2020-04-29 12:49:27 +03:00
create.go service: support broken apart signable payload of the requests 2020-06-10 20:37:10 +03:00
create_test.go service: support broken apart signable payload of the requests 2020-06-10 20:37:10 +03:00
errors.go session: implement function for receiving session public key bytes 2020-05-18 16:47:15 +03:00
private.go session: implement function for receiving session public key bytes 2020-05-18 16:47:15 +03:00
private_test.go session: implement function for receiving session public key bytes 2020-05-18 16:47:15 +03:00
request.go Implement signed data calculating function from SignedDataReader 2020-05-11 17:28:44 +03:00
request_test.go session: implement SignedDataSource on CreateRequest 2020-05-08 11:55:19 +03:00
response.go session: implement getters and setters on messages 2020-05-08 11:53:49 +03:00
response_test.go session: implement getters and setters on messages 2020-05-08 11:53:49 +03:00
service.pb.go Update to neofs-api v0.7.4 2020-05-08 10:49:23 +03:00
service.proto Update to neofs-api v0.7.4 2020-05-08 10:49:23 +03:00
store.go session: add OwnerID to a private token storage key 2020-05-08 13:23:30 +03:00
store_test.go session: add OwnerID to a private token storage key 2020-05-08 13:23:30 +03:00
types.go session: change PrivateToken interface methods 2020-05-18 16:47:15 +03:00