frostfs-api-go/service/verify.proto

32 lines
1.1 KiB
Protocol Buffer
Raw Permalink Normal View History

2019-11-18 16:22:08 +00:00
syntax = "proto3";
package service;
2020-03-31 07:05:26 +00:00
option go_package = "github.com/nspcc-dev/neofs-api-go/service";
2020-02-05 13:58:06 +00:00
option csharp_namespace = "NeoFS.API.Service";
2019-11-18 16:22:08 +00:00
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.stable_marshaler_all) = true;
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request
// (should be embedded into message).
2019-11-18 16:22:08 +00:00
message RequestVerificationHeader {
message Sign {
// Sign is signature of the request or session key.
2019-11-18 16:22:08 +00:00
bytes Sign = 1;
// Peer is compressed public key used for signature.
2019-11-18 16:22:08 +00:00
bytes Peer = 2;
}
2019-11-18 16:22:08 +00:00
message Signature {
// Sign is a signature and public key of the request.
2019-11-18 16:22:08 +00:00
Sign Sign = 1 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
// Origin used for requests, when trusted node changes it and re-sign with session key.
// If session key used for signature request, then Origin should contain
// public key of user and signed session key.
2019-11-18 16:22:08 +00:00
Sign Origin = 2;
}
// Signatures is a set of signatures of every passed NeoFS Node
2019-11-18 16:22:08 +00:00
repeated Signature Signatures = 1;
}