frostfs-api-go/service
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 service: transfer public types to a separate file 2020-05-04 14:00:25 +03:00
epoch.go service: refactor MetaHeader interface 2020-05-04 14:37:14 +03:00
epoch_test.go service: refactor MetaHeader interface 2020-05-04 14:37:14 +03:00
errors.go service: support broken apart signable payload of the requests 2020-06-10 20:37:10 +03:00
meta.go service: fix comments 2020-05-06 15:32:13 +03:00
meta.pb.go Update to neofs-api v0.7.2 2020-04-28 12:50:52 +03:00
meta.proto Update to neofs-api v0.7.2 2020-04-28 12:50:52 +03:00
meta_test.go service: refactor MetaHeader interface 2020-05-04 14:37:14 +03:00
raw.go service: refactor MetaHeader interface 2020-05-04 14:37:14 +03:00
raw_test.go service: refactor MetaHeader interface 2020-05-04 14:37:14 +03:00
role.go fix comments 2020-05-11 17:44:59 +03:00
role_test.go Update develop branch 2019-11-21 13:10:57 +03:00
sign.go service: support broken apart signable payload of the requests 2020-06-10 20:37:10 +03:00
sign_test.go service: support broken apart signable payload of the requests 2020-06-10 20:37:10 +03:00
token.go service: call OwnerKey setter in AddSignKey method implementation 2020-05-16 15:29:44 +03:00
token_test.go service: call OwnerKey setter in AddSignKey method implementation 2020-05-16 15:29:44 +03:00
ttl.go service: use value container interfaces 2020-05-04 14:05:06 +03:00
ttl_test.go service: transfer TTL code to a separate file 2020-05-04 13:38:27 +03:00
types.go service: support broken apart signable payload of the requests 2020-06-10 20:37:10 +03:00
utils.go Implement signed data calculating function from SignedDataReader 2020-05-11 17:28:44 +03:00
utils_test.go Implement signed data calculating function from SignedDataReader 2020-05-11 17:28:44 +03:00
verify.go service: remove no longer used Sign/Verify methods and functions 2020-05-12 10:45:03 +03:00
verify.pb.go Update to neofs-api v0.7.5 2020-05-15 16:00:02 +03:00
verify.proto Update to neofs-api v0.7.5 2020-05-15 16:00:02 +03:00
verify_test.go service: support broken apart signable payload of the requests 2020-06-10 20:37:10 +03:00
verify_test.pb.go Migrate to new repo 2020-03-31 10:05:26 +03:00
verify_test.proto Migrate to new repo 2020-03-31 10:05:26 +03:00
version.go service: refactor MetaHeader interface 2020-05-04 14:37:14 +03:00
version_test.go service: refactor MetaHeader interface 2020-05-04 14:37:14 +03:00