2019-05-22 20:15:59 +01:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
option go_package = "pb";
|
|
|
|
|
|
|
|
package vouchers;
|
|
|
|
|
|
|
|
import "gogo.proto";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
|
|
|
|
// Voucher is a signed message verifying that a node has been vetted by a particular satellite
|
|
|
|
message Voucher {
|
|
|
|
bytes satellite_id = 1 [(gogoproto.customtype) = "NodeID", (gogoproto.nullable) = false];
|
|
|
|
bytes storage_node_id = 2 [(gogoproto.customtype) = "NodeID", (gogoproto.nullable) = false];
|
|
|
|
|
2019-07-08 18:07:30 +01:00
|
|
|
google.protobuf.Timestamp expiration = 3 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
|
2019-05-22 20:15:59 +01:00
|
|
|
|
|
|
|
bytes satellite_signature = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message VoucherRequest {}
|
|
|
|
|
2019-06-21 23:48:52 +01:00
|
|
|
message VoucherResponse {
|
|
|
|
enum Status {
|
|
|
|
INVALID = 0;
|
|
|
|
ACCEPTED = 1;
|
|
|
|
REJECTED = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
Voucher voucher = 1;
|
|
|
|
|
|
|
|
Status status = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-05-22 20:15:59 +01:00
|
|
|
service Vouchers {
|
2019-06-21 23:48:52 +01:00
|
|
|
rpc Request(VoucherRequest) returns (VoucherResponse) {}
|
|
|
|
}
|