storj/certificate/certificatepb/certificate.proto
Egon Elbre e9bc06608e certificate/certificatepb: add definitions for migration
Also fixing the timestamp in .proto which was actually int64.

Change-Id: I65e3172793a49bf8bfd946b199016204ed72f221
2023-01-25 10:28:36 +02:00

44 lines
807 B
Protocol Buffer

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
syntax = "proto3";
option go_package = "storj.io/storj/certificate/certificatepb";
package node;
service Certificates {
rpc Sign(SigningRequest) returns (SigningResponse);
}
message SigningRequest {
string auth_token = 1;
int64 timestamp = 2;
}
message SigningResponse {
repeated bytes chain = 1;
}
// These types are used for storing authorizations in a database.
message AuthorizationGroup {
repeated Authorization authorizations = 1;
}
message Authorization {
Token token = 1;
Claim claim = 2;
}
message Token {
bytes user_id = 1;
bytes data = 2;
}
message Claim {
bytes addr = 1;
int64 timestamp = 2;
bytes identity = 3;
repeated bytes signed_chain_bytes = 4;
}