forked from google/trillian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
trillian.pb.go
727 lines (650 loc) · 27.9 KB
/
trillian.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: trillian.proto
package trillian
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
duration "github.com/golang/protobuf/ptypes/duration"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
keyspb "github.com/google/trillian/crypto/keyspb"
sigpb "github.com/google/trillian/crypto/sigpb"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// LogRootFormat specifies the fields that are covered by the
// SignedLogRoot signature, as well as their ordering and formats.
type LogRootFormat int32
const (
LogRootFormat_LOG_ROOT_FORMAT_UNKNOWN LogRootFormat = 0
LogRootFormat_LOG_ROOT_FORMAT_V1 LogRootFormat = 1
)
var LogRootFormat_name = map[int32]string{
0: "LOG_ROOT_FORMAT_UNKNOWN",
1: "LOG_ROOT_FORMAT_V1",
}
var LogRootFormat_value = map[string]int32{
"LOG_ROOT_FORMAT_UNKNOWN": 0,
"LOG_ROOT_FORMAT_V1": 1,
}
func (x LogRootFormat) String() string {
return proto.EnumName(LogRootFormat_name, int32(x))
}
func (LogRootFormat) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_364603a4e17a2a56, []int{0}
}
// MapRootFormat specifies the fields that are covered by the
// SignedMapRoot signature, as well as their ordering and formats.
type MapRootFormat int32
const (
MapRootFormat_MAP_ROOT_FORMAT_UNKNOWN MapRootFormat = 0
MapRootFormat_MAP_ROOT_FORMAT_V1 MapRootFormat = 1
)
var MapRootFormat_name = map[int32]string{
0: "MAP_ROOT_FORMAT_UNKNOWN",
1: "MAP_ROOT_FORMAT_V1",
}
var MapRootFormat_value = map[string]int32{
"MAP_ROOT_FORMAT_UNKNOWN": 0,
"MAP_ROOT_FORMAT_V1": 1,
}
func (x MapRootFormat) String() string {
return proto.EnumName(MapRootFormat_name, int32(x))
}
func (MapRootFormat) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_364603a4e17a2a56, []int{1}
}
// Defines the way empty / node / leaf hashes are constructed incorporating
// preimage protection, which can be application specific.
type HashStrategy int32
const (
// Hash strategy cannot be determined. Included to enable detection of
// mismatched proto versions being used. Represents an invalid value.
HashStrategy_UNKNOWN_HASH_STRATEGY HashStrategy = 0
// Certificate Transparency strategy: leaf hash prefix = 0x00, node prefix =
// 0x01, empty hash is digest([]byte{}), as defined in the specification.
HashStrategy_RFC6962_SHA256 HashStrategy = 1
// Sparse Merkle Tree strategy: leaf hash prefix = 0x00, node prefix = 0x01,
// empty branch is recursively computed from empty leaf nodes.
// NOT secure in a multi tree environment. For testing only.
HashStrategy_TEST_MAP_HASHER HashStrategy = 2
// Append-only log strategy where leaf nodes are defined as the ObjectHash.
// All other properties are equal to RFC6962_SHA256.
HashStrategy_OBJECT_RFC6962_SHA256 HashStrategy = 3
// The CONIKS sparse tree hasher with SHA512_256 as the hash algorithm.
HashStrategy_CONIKS_SHA512_256 HashStrategy = 4
// The CONIKS sparse tree hasher with SHA256 as the hash algorithm.
HashStrategy_CONIKS_SHA256 HashStrategy = 5
)
var HashStrategy_name = map[int32]string{
0: "UNKNOWN_HASH_STRATEGY",
1: "RFC6962_SHA256",
2: "TEST_MAP_HASHER",
3: "OBJECT_RFC6962_SHA256",
4: "CONIKS_SHA512_256",
5: "CONIKS_SHA256",
}
var HashStrategy_value = map[string]int32{
"UNKNOWN_HASH_STRATEGY": 0,
"RFC6962_SHA256": 1,
"TEST_MAP_HASHER": 2,
"OBJECT_RFC6962_SHA256": 3,
"CONIKS_SHA512_256": 4,
"CONIKS_SHA256": 5,
}
func (x HashStrategy) String() string {
return proto.EnumName(HashStrategy_name, int32(x))
}
func (HashStrategy) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_364603a4e17a2a56, []int{2}
}
// State of the tree.
type TreeState int32
const (
// Tree state cannot be determined. Included to enable detection of
// mismatched proto versions being used. Represents an invalid value.
TreeState_UNKNOWN_TREE_STATE TreeState = 0
// Active trees are able to respond to both read and write requests.
TreeState_ACTIVE TreeState = 1
// Frozen trees are only able to respond to read requests, writing to a frozen
// tree is forbidden. Trees should not be frozen when there are entries
// in the queue that have not yet been integrated. See the DRAINING
// state for this case.
TreeState_FROZEN TreeState = 2
// Deprecated: now tracked in Tree.deleted.
TreeState_DEPRECATED_SOFT_DELETED TreeState = 3 // Deprecated: Do not use.
// Deprecated: now tracked in Tree.deleted.
TreeState_DEPRECATED_HARD_DELETED TreeState = 4 // Deprecated: Do not use.
// A tree that is draining will continue to integrate queued entries.
// No new entries should be accepted.
TreeState_DRAINING TreeState = 5
)
var TreeState_name = map[int32]string{
0: "UNKNOWN_TREE_STATE",
1: "ACTIVE",
2: "FROZEN",
3: "DEPRECATED_SOFT_DELETED",
4: "DEPRECATED_HARD_DELETED",
5: "DRAINING",
}
var TreeState_value = map[string]int32{
"UNKNOWN_TREE_STATE": 0,
"ACTIVE": 1,
"FROZEN": 2,
"DEPRECATED_SOFT_DELETED": 3,
"DEPRECATED_HARD_DELETED": 4,
"DRAINING": 5,
}
func (x TreeState) String() string {
return proto.EnumName(TreeState_name, int32(x))
}
func (TreeState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_364603a4e17a2a56, []int{3}
}
// Type of the tree.
type TreeType int32
const (
// Tree type cannot be determined. Included to enable detection of mismatched
// proto versions being used. Represents an invalid value.
TreeType_UNKNOWN_TREE_TYPE TreeType = 0
// Tree represents a verifiable log.
TreeType_LOG TreeType = 1
// Tree represents a verifiable map.
TreeType_MAP TreeType = 2
// Tree represents a verifiable pre-ordered log, i.e., a log whose entries are
// placed according to sequence numbers assigned outside of Trillian.
TreeType_PREORDERED_LOG TreeType = 3
)
var TreeType_name = map[int32]string{
0: "UNKNOWN_TREE_TYPE",
1: "LOG",
2: "MAP",
3: "PREORDERED_LOG",
}
var TreeType_value = map[string]int32{
"UNKNOWN_TREE_TYPE": 0,
"LOG": 1,
"MAP": 2,
"PREORDERED_LOG": 3,
}
func (x TreeType) String() string {
return proto.EnumName(TreeType_name, int32(x))
}
func (TreeType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_364603a4e17a2a56, []int{4}
}
// Represents a tree, which may be either a verifiable log or map.
// Readonly attributes are assigned at tree creation, after which they may not
// be modified.
//
// Note: Many APIs within the rest of the code require these objects to
// be provided. For safety they should be obtained via Admin API calls and
// not created dynamically.
type Tree struct {
// ID of the tree.
// Readonly.
TreeId int64 `protobuf:"varint,1,opt,name=tree_id,json=treeId,proto3" json:"tree_id,omitempty"`
// State of the tree.
// Trees are ACTIVE after creation. At any point the tree may transition
// between ACTIVE, DRAINING and FROZEN states.
TreeState TreeState `protobuf:"varint,2,opt,name=tree_state,json=treeState,proto3,enum=trillian.TreeState" json:"tree_state,omitempty"`
// Type of the tree.
// Readonly after Tree creation. Exception: Can be switched from
// PREORDERED_LOG to LOG if the Tree is and remains in the FROZEN state.
TreeType TreeType `protobuf:"varint,3,opt,name=tree_type,json=treeType,proto3,enum=trillian.TreeType" json:"tree_type,omitempty"`
// Hash strategy to be used by the tree.
// Readonly.
HashStrategy HashStrategy `protobuf:"varint,4,opt,name=hash_strategy,json=hashStrategy,proto3,enum=trillian.HashStrategy" json:"hash_strategy,omitempty"`
// Hash algorithm to be used by the tree.
// Readonly.
HashAlgorithm sigpb.DigitallySigned_HashAlgorithm `protobuf:"varint,5,opt,name=hash_algorithm,json=hashAlgorithm,proto3,enum=sigpb.DigitallySigned_HashAlgorithm" json:"hash_algorithm,omitempty"`
// Signature algorithm to be used by the tree.
// Readonly.
SignatureAlgorithm sigpb.DigitallySigned_SignatureAlgorithm `protobuf:"varint,6,opt,name=signature_algorithm,json=signatureAlgorithm,proto3,enum=sigpb.DigitallySigned_SignatureAlgorithm" json:"signature_algorithm,omitempty"`
// Display name of the tree.
// Optional.
DisplayName string `protobuf:"bytes,8,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Description of the tree,
// Optional.
Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
// Identifies the private key used for signing tree heads and entry
// timestamps.
// This can be any type of message to accommodate different key management
// systems, e.g. PEM files, HSMs, etc.
// Private keys are write-only: they're never returned by RPCs.
// The private_key message can be changed after a tree is created, but the
// underlying key must remain the same - this is to enable migrating a key
// from one provider to another.
PrivateKey *any.Any `protobuf:"bytes,12,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
// Storage-specific settings.
// Varies according to the storage implementation backing Trillian.
StorageSettings *any.Any `protobuf:"bytes,13,opt,name=storage_settings,json=storageSettings,proto3" json:"storage_settings,omitempty"`
// The public key used for verifying tree heads and entry timestamps.
// Readonly.
PublicKey *keyspb.PublicKey `protobuf:"bytes,14,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
// Interval after which a new signed root is produced even if there have been
// no submission. If zero, this behavior is disabled.
MaxRootDuration *duration.Duration `protobuf:"bytes,15,opt,name=max_root_duration,json=maxRootDuration,proto3" json:"max_root_duration,omitempty"`
// Time of tree creation.
// Readonly.
CreateTime *timestamp.Timestamp `protobuf:"bytes,16,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Time of last tree update.
// Readonly (automatically assigned on updates).
UpdateTime *timestamp.Timestamp `protobuf:"bytes,17,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// If true, the tree has been deleted.
// Deleted trees may be undeleted during a certain time window, after which
// they're permanently deleted (and unrecoverable).
// Readonly.
Deleted bool `protobuf:"varint,19,opt,name=deleted,proto3" json:"deleted,omitempty"`
// Time of tree deletion, if any.
// Readonly.
DeleteTime *timestamp.Timestamp `protobuf:"bytes,20,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Tree) Reset() { *m = Tree{} }
func (m *Tree) String() string { return proto.CompactTextString(m) }
func (*Tree) ProtoMessage() {}
func (*Tree) Descriptor() ([]byte, []int) {
return fileDescriptor_364603a4e17a2a56, []int{0}
}
func (m *Tree) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Tree.Unmarshal(m, b)
}
func (m *Tree) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Tree.Marshal(b, m, deterministic)
}
func (m *Tree) XXX_Merge(src proto.Message) {
xxx_messageInfo_Tree.Merge(m, src)
}
func (m *Tree) XXX_Size() int {
return xxx_messageInfo_Tree.Size(m)
}
func (m *Tree) XXX_DiscardUnknown() {
xxx_messageInfo_Tree.DiscardUnknown(m)
}
var xxx_messageInfo_Tree proto.InternalMessageInfo
func (m *Tree) GetTreeId() int64 {
if m != nil {
return m.TreeId
}
return 0
}
func (m *Tree) GetTreeState() TreeState {
if m != nil {
return m.TreeState
}
return TreeState_UNKNOWN_TREE_STATE
}
func (m *Tree) GetTreeType() TreeType {
if m != nil {
return m.TreeType
}
return TreeType_UNKNOWN_TREE_TYPE
}
func (m *Tree) GetHashStrategy() HashStrategy {
if m != nil {
return m.HashStrategy
}
return HashStrategy_UNKNOWN_HASH_STRATEGY
}
func (m *Tree) GetHashAlgorithm() sigpb.DigitallySigned_HashAlgorithm {
if m != nil {
return m.HashAlgorithm
}
return sigpb.DigitallySigned_NONE
}
func (m *Tree) GetSignatureAlgorithm() sigpb.DigitallySigned_SignatureAlgorithm {
if m != nil {
return m.SignatureAlgorithm
}
return sigpb.DigitallySigned_ANONYMOUS
}
func (m *Tree) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *Tree) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *Tree) GetPrivateKey() *any.Any {
if m != nil {
return m.PrivateKey
}
return nil
}
func (m *Tree) GetStorageSettings() *any.Any {
if m != nil {
return m.StorageSettings
}
return nil
}
func (m *Tree) GetPublicKey() *keyspb.PublicKey {
if m != nil {
return m.PublicKey
}
return nil
}
func (m *Tree) GetMaxRootDuration() *duration.Duration {
if m != nil {
return m.MaxRootDuration
}
return nil
}
func (m *Tree) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Tree) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
return nil
}
func (m *Tree) GetDeleted() bool {
if m != nil {
return m.Deleted
}
return false
}
func (m *Tree) GetDeleteTime() *timestamp.Timestamp {
if m != nil {
return m.DeleteTime
}
return nil
}
type SignedEntryTimestamp struct {
TimestampNanos int64 `protobuf:"varint,1,opt,name=timestamp_nanos,json=timestampNanos,proto3" json:"timestamp_nanos,omitempty"`
LogId int64 `protobuf:"varint,2,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
Signature *sigpb.DigitallySigned `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SignedEntryTimestamp) Reset() { *m = SignedEntryTimestamp{} }
func (m *SignedEntryTimestamp) String() string { return proto.CompactTextString(m) }
func (*SignedEntryTimestamp) ProtoMessage() {}
func (*SignedEntryTimestamp) Descriptor() ([]byte, []int) {
return fileDescriptor_364603a4e17a2a56, []int{1}
}
func (m *SignedEntryTimestamp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignedEntryTimestamp.Unmarshal(m, b)
}
func (m *SignedEntryTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignedEntryTimestamp.Marshal(b, m, deterministic)
}
func (m *SignedEntryTimestamp) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignedEntryTimestamp.Merge(m, src)
}
func (m *SignedEntryTimestamp) XXX_Size() int {
return xxx_messageInfo_SignedEntryTimestamp.Size(m)
}
func (m *SignedEntryTimestamp) XXX_DiscardUnknown() {
xxx_messageInfo_SignedEntryTimestamp.DiscardUnknown(m)
}
var xxx_messageInfo_SignedEntryTimestamp proto.InternalMessageInfo
func (m *SignedEntryTimestamp) GetTimestampNanos() int64 {
if m != nil {
return m.TimestampNanos
}
return 0
}
func (m *SignedEntryTimestamp) GetLogId() int64 {
if m != nil {
return m.LogId
}
return 0
}
func (m *SignedEntryTimestamp) GetSignature() *sigpb.DigitallySigned {
if m != nil {
return m.Signature
}
return nil
}
// SignedLogRoot represents a commitment by a Log to a particular tree.
type SignedLogRoot struct {
// key_hint is a hint to identify the public key for signature verification.
// key_hint is not authenticated and may be incorrect or missing, in which
// case all known public keys may be used to verify the signature.
// When directly communicating with a Trillian gRPC server, the key_hint will
// typically contain the LogID encoded as a big-endian 64-bit integer;
// however, in other contexts the key_hint is likely to have different
// contents (e.g. it could be a GUID, a URL + TreeID, or it could be
// derived from the public key itself).
KeyHint []byte `protobuf:"bytes,7,opt,name=key_hint,json=keyHint,proto3" json:"key_hint,omitempty"`
// log_root holds the TLS-serialization of the following structure (described
// in RFC5246 notation): Clients should validate log_root_signature with
// VerifySignedLogRoot before deserializing log_root.
// enum { v1(1), (65535)} Version;
// struct {
// uint64 tree_size;
// opaque root_hash<0..128>;
// uint64 timestamp_nanos;
// uint64 revision;
// opaque metadata<0..65535>;
// } LogRootV1;
// struct {
// Version version;
// select(version) {
// case v1: LogRootV1;
// }
// } LogRoot;
//
// A serialized v1 log root will therefore be laid out as:
//
// +---+---+---+---+---+---+---+---+---+---+---+---+---+---+-....--+
// | ver=1 | tree_size |len| root_hashlen |
// +---+---+---+---+---+---+---+---+---+---+---+---+---+---+-....--+
//
// +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
// | timestamp_nanos | revision |
// +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
//
// +---+---+---+---+---+-....---+
// | len | metadata |
// +---+---+---+---+---+-....---+
//
// (with all integers encoded big-endian).
LogRoot []byte `protobuf:"bytes,8,opt,name=log_root,json=logRoot,proto3" json:"log_root,omitempty"`
// log_root_signature is the raw signature over log_root.
LogRootSignature []byte `protobuf:"bytes,9,opt,name=log_root_signature,json=logRootSignature,proto3" json:"log_root_signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SignedLogRoot) Reset() { *m = SignedLogRoot{} }
func (m *SignedLogRoot) String() string { return proto.CompactTextString(m) }
func (*SignedLogRoot) ProtoMessage() {}
func (*SignedLogRoot) Descriptor() ([]byte, []int) {
return fileDescriptor_364603a4e17a2a56, []int{2}
}
func (m *SignedLogRoot) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignedLogRoot.Unmarshal(m, b)
}
func (m *SignedLogRoot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignedLogRoot.Marshal(b, m, deterministic)
}
func (m *SignedLogRoot) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignedLogRoot.Merge(m, src)
}
func (m *SignedLogRoot) XXX_Size() int {
return xxx_messageInfo_SignedLogRoot.Size(m)
}
func (m *SignedLogRoot) XXX_DiscardUnknown() {
xxx_messageInfo_SignedLogRoot.DiscardUnknown(m)
}
var xxx_messageInfo_SignedLogRoot proto.InternalMessageInfo
func (m *SignedLogRoot) GetKeyHint() []byte {
if m != nil {
return m.KeyHint
}
return nil
}
func (m *SignedLogRoot) GetLogRoot() []byte {
if m != nil {
return m.LogRoot
}
return nil
}
func (m *SignedLogRoot) GetLogRootSignature() []byte {
if m != nil {
return m.LogRootSignature
}
return nil
}
// SignedMapRoot represents a commitment by a Map to a particular tree.
type SignedMapRoot struct {
// map_root holds the TLS-serialization of the following structure (described
// in RFC5246 notation): Clients should validate signature with
// VerifySignedMapRoot before deserializing map_root.
// enum { v1(1), (65535)} Version;
// struct {
// opaque root_hash<0..128>;
// uint64 timestamp_nanos;
// uint64 revision;
// opaque metadata<0..65535>;
// } MapRootV1;
// struct {
// Version version;
// select(version) {
// case v1: MapRootV1;
// }
// } MapRoot;
MapRoot []byte `protobuf:"bytes,9,opt,name=map_root,json=mapRoot,proto3" json:"map_root,omitempty"`
// Signature is the raw signature over MapRoot.
Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SignedMapRoot) Reset() { *m = SignedMapRoot{} }
func (m *SignedMapRoot) String() string { return proto.CompactTextString(m) }
func (*SignedMapRoot) ProtoMessage() {}
func (*SignedMapRoot) Descriptor() ([]byte, []int) {
return fileDescriptor_364603a4e17a2a56, []int{3}
}
func (m *SignedMapRoot) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignedMapRoot.Unmarshal(m, b)
}
func (m *SignedMapRoot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignedMapRoot.Marshal(b, m, deterministic)
}
func (m *SignedMapRoot) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignedMapRoot.Merge(m, src)
}
func (m *SignedMapRoot) XXX_Size() int {
return xxx_messageInfo_SignedMapRoot.Size(m)
}
func (m *SignedMapRoot) XXX_DiscardUnknown() {
xxx_messageInfo_SignedMapRoot.DiscardUnknown(m)
}
var xxx_messageInfo_SignedMapRoot proto.InternalMessageInfo
func (m *SignedMapRoot) GetMapRoot() []byte {
if m != nil {
return m.MapRoot
}
return nil
}
func (m *SignedMapRoot) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
func init() {
proto.RegisterEnum("trillian.LogRootFormat", LogRootFormat_name, LogRootFormat_value)
proto.RegisterEnum("trillian.MapRootFormat", MapRootFormat_name, MapRootFormat_value)
proto.RegisterEnum("trillian.HashStrategy", HashStrategy_name, HashStrategy_value)
proto.RegisterEnum("trillian.TreeState", TreeState_name, TreeState_value)
proto.RegisterEnum("trillian.TreeType", TreeType_name, TreeType_value)
proto.RegisterType((*Tree)(nil), "trillian.Tree")
proto.RegisterType((*SignedEntryTimestamp)(nil), "trillian.SignedEntryTimestamp")
proto.RegisterType((*SignedLogRoot)(nil), "trillian.SignedLogRoot")
proto.RegisterType((*SignedMapRoot)(nil), "trillian.SignedMapRoot")
}
func init() { proto.RegisterFile("trillian.proto", fileDescriptor_364603a4e17a2a56) }
var fileDescriptor_364603a4e17a2a56 = []byte{
// 1052 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x55, 0x5b, 0x6f, 0xe2, 0x46,
0x14, 0x5e, 0x83, 0x01, 0x33, 0x5c, 0x32, 0x99, 0xec, 0xc5, 0xa1, 0x55, 0x97, 0x46, 0x95, 0x4a,
0xa3, 0x8a, 0x74, 0x69, 0x13, 0xa9, 0xda, 0x87, 0xca, 0x09, 0x4e, 0x80, 0x24, 0x80, 0xc6, 0xee,
0x56, 0x9b, 0x97, 0x91, 0x81, 0xa9, 0xb1, 0x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