Debian Codegraph @

service-protos/rekor/v2/verifier.proto

raw
1 // Copyright 2025 The Sigstore Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 syntax = "proto3";
16 package dev.sigstore.rekor.v2;
17
18 import "sigstore_common.proto";
19 import "google/api/field_behavior.proto";
20
21 option go_package = "github.com/sigstore/protobuf-specs/gen/pb-go/rekor/v2";
22
23 option java_package = "dev.sigstore.proto.rekor.v2";
24 option java_multiple_files = true;
25 option java_outer_classname = "RekorV2Verifier";
26 option ruby_package = "Sigstore::Rekor::V2";
27
28 // PublicKey contains an encoded public key
29 message PublicKey {
30 // DER-encoded public key
31 bytes raw_bytes = 1 [(google.api.field_behavior) = REQUIRED];
32 }
33
34 // Either a public key or a X.509 cerificiate with an embedded public key
35 message Verifier {
36 oneof verifier {
37 // DER-encoded public key. Encoding method is specified by the key_details attribute
38 PublicKey public_key = 1 [(google.api.field_behavior) = REQUIRED];
39 // DER-encoded certificate
40 dev.sigstore.common.v1.X509Certificate x509_certificate = 2 [(google.api.field_behavior) = REQUIRED];
41 }
42 // Key encoding and signature algorithm to use for this key
43 dev.sigstore.common.v1.PublicKeyDetails key_details = 3 [(google.api.field_behavior) = REQUIRED];
44 }
45
46 // A signature and an associated verifier
47 message Signature {
48 bytes content = 1 [(google.api.field_behavior) = REQUIRED];
49 Verifier verifier = 2 [(google.api.field_behavior) = REQUIRED];
50 }