2020-01-30 14:41:24 +03:00
|
|
|
syntax = "proto3";
|
2020-08-06 02:25:50 +03:00
|
|
|
|
2020-01-30 14:41:24 +03:00
|
|
|
package service;
|
2020-08-06 02:25:50 +03:00
|
|
|
|
2020-03-31 09:58:22 +03:00
|
|
|
option go_package = "github.com/nspcc-dev/neofs-api-go/service";
|
2020-02-05 15:14:39 +03:00
|
|
|
option csharp_namespace = "NeoFS.API.Service";
|
2020-01-30 14:41:24 +03:00
|
|
|
|
2020-08-06 12:28:13 +03:00
|
|
|
import "acl/types.proto";
|
2020-04-24 19:18:28 +03:00
|
|
|
import "refs/types.proto";
|
2020-01-30 14:41:24 +03:00
|
|
|
|
2020-08-11 18:21:45 +03:00
|
|
|
// Signature of something in NeoFS
|
2020-08-11 13:54:58 +03:00
|
|
|
message Signature {
|
|
|
|
// Public key used for signing.
|
|
|
|
bytes key = 1;
|
|
|
|
// Signature
|
|
|
|
bytes sign = 2;
|
|
|
|
}
|
|
|
|
|
2020-08-11 17:49:31 +03:00
|
|
|
// Verification info for request signed by all intermediate nodes
|
2020-01-30 14:41:24 +03:00
|
|
|
message RequestVerificationHeader {
|
2020-08-11 18:21:45 +03:00
|
|
|
// Request Body signature. Should be generated once by request initiator.
|
2020-08-11 17:49:31 +03:00
|
|
|
Signature body_signature = 1;
|
2020-08-11 18:21:45 +03:00
|
|
|
// Request Meta signature is added and signed by any intermediate node
|
2020-08-11 17:49:31 +03:00
|
|
|
Signature meta_signature = 2;
|
2020-08-11 18:21:45 +03:00
|
|
|
// Sign previous hops
|
|
|
|
Signature origin_signature = 3;
|
2020-04-24 19:18:28 +03:00
|
|
|
|
2020-08-11 18:21:45 +03:00
|
|
|
// Chain of previous hops signatures
|
|
|
|
RequestVerificationHeader origin = 4;
|
2020-06-18 10:58:11 +03:00
|
|
|
}
|
2020-08-11 17:49:31 +03:00
|
|
|
|
|
|
|
// Verification info for response signed by all intermediate nodes
|
|
|
|
message ResponseVerificationHeader {
|
2020-08-11 18:21:45 +03:00
|
|
|
// Response Body signature. Should be generated once by answering node.
|
2020-08-11 17:49:31 +03:00
|
|
|
Signature body_signature = 1;
|
2020-08-11 18:21:45 +03:00
|
|
|
// Response Meta signature is added and signed by any intermediate node
|
2020-08-11 17:49:31 +03:00
|
|
|
Signature meta_signature = 2;
|
2020-08-11 18:21:45 +03:00
|
|
|
// Sign previous hops
|
|
|
|
Signature origin_signature = 3;
|
2020-08-11 17:49:31 +03:00
|
|
|
|
2020-08-11 18:21:45 +03:00
|
|
|
// Chain of previous hops signatures
|
|
|
|
ResponseVerificationHeader origin = 4;
|
2020-08-11 17:49:31 +03:00
|
|
|
}
|