forked from TrueCloudLab/frostfs-api
[#22] Update fields in container put request
With explicit signature field, that contains signature of stable-marshalled container message, there is no need to have separate fields of the container in request. Public key will be stored in neofs.id smart-contract for later signature verifications. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
9510aaee5d
commit
72618c4e49
1 changed files with 7 additions and 16 deletions
|
@ -7,7 +7,6 @@ import "acl/types.proto";
|
||||||
import "service/meta.proto";
|
import "service/meta.proto";
|
||||||
import "service/verify.proto";
|
import "service/verify.proto";
|
||||||
import "container/types.proto";
|
import "container/types.proto";
|
||||||
import "github.com/nspcc-dev/netmap/selector.proto";
|
|
||||||
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
||||||
|
|
||||||
option (gogoproto.stable_marshaler_all) = true;
|
option (gogoproto.stable_marshaler_all) = true;
|
||||||
|
@ -37,21 +36,13 @@ service Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
message PutRequest {
|
message PutRequest {
|
||||||
// MessageID is a nonce for uniq container id calculation
|
// Container to create in NeoFS.
|
||||||
bytes MessageID = 1 [(gogoproto.customtype) = "MessageID", (gogoproto.nullable) = false];
|
container.Container Container = 1;
|
||||||
|
// PublicKey of container owner. It can be public key of the owner
|
||||||
// Capacity defines amount of data that can be stored in the container (doesn't used for now).
|
// or it can be public key that bound in neofs.id smart-contract.
|
||||||
uint64 Capacity = 2;
|
bytes PublicKey = 2;
|
||||||
|
// Signature of stable-marshalled container according to RFC-6979.
|
||||||
// OwnerID is a wallet address
|
bytes Signature = 3;
|
||||||
bytes OwnerID = 3 [(gogoproto.customtype) = "OwnerID", (gogoproto.nullable) = false];
|
|
||||||
|
|
||||||
// Rules define storage policy for the object inside the container.
|
|
||||||
netmap.PlacementRule rules = 4 [(gogoproto.nullable) = false];
|
|
||||||
|
|
||||||
// BasicACL of the container.
|
|
||||||
uint32 BasicACL = 5;
|
|
||||||
|
|
||||||
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
|
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
|
||||||
service.RequestMetaHeader Meta = 98 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
service.RequestMetaHeader Meta = 98 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
||||||
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
|
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
|
||||||
|
|
Loading…
Reference in a new issue