github.com/ZihuaZhang/fabric-protos-go@v1.0.7/common/common.pb.go (about) 1 // Copyright the Hyperledger Fabric contributors. All rights reserved. 2 // 3 // SPDX-License-Identifier: Apache-2.0 4 5 // Code generated by protoc-gen-go. DO NOT EDIT. 6 // versions: 7 // protoc-gen-go v1.33.0 8 // protoc v4.25.3 9 // source: common/common.proto 10 11 package common 12 13 import ( 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 17 reflect "reflect" 18 sync "sync" 19 ) 20 21 const ( 22 // Verify that this generated code is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 24 // Verify that runtime/protoimpl is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 26 ) 27 28 // These status codes are intended to resemble selected HTTP status codes 29 type Status int32 30 31 const ( 32 Status_UNKNOWN Status = 0 33 Status_SUCCESS Status = 200 34 Status_BAD_REQUEST Status = 400 35 Status_FORBIDDEN Status = 403 36 Status_NOT_FOUND Status = 404 37 Status_REQUEST_ENTITY_TOO_LARGE Status = 413 38 Status_INTERNAL_SERVER_ERROR Status = 500 39 Status_NOT_IMPLEMENTED Status = 501 40 Status_SERVICE_UNAVAILABLE Status = 503 41 ) 42 43 // Enum value maps for Status. 44 var ( 45 Status_name = map[int32]string{ 46 0: "UNKNOWN", 47 200: "SUCCESS", 48 400: "BAD_REQUEST", 49 403: "FORBIDDEN", 50 404: "NOT_FOUND", 51 413: "REQUEST_ENTITY_TOO_LARGE", 52 500: "INTERNAL_SERVER_ERROR", 53 501: "NOT_IMPLEMENTED", 54 503: "SERVICE_UNAVAILABLE", 55 } 56 Status_value = map[string]int32{ 57 "UNKNOWN": 0, 58 "SUCCESS": 200, 59 "BAD_REQUEST": 400, 60 "FORBIDDEN": 403, 61 "NOT_FOUND": 404, 62 "REQUEST_ENTITY_TOO_LARGE": 413, 63 "INTERNAL_SERVER_ERROR": 500, 64 "NOT_IMPLEMENTED": 501, 65 "SERVICE_UNAVAILABLE": 503, 66 } 67 ) 68 69 func (x Status) Enum() *Status { 70 p := new(Status) 71 *p = x 72 return p 73 } 74 75 func (x Status) String() string { 76 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 77 } 78 79 func (Status) Descriptor() protoreflect.EnumDescriptor { 80 return file_common_common_proto_enumTypes[0].Descriptor() 81 } 82 83 func (Status) Type() protoreflect.EnumType { 84 return &file_common_common_proto_enumTypes[0] 85 } 86 87 func (x Status) Number() protoreflect.EnumNumber { 88 return protoreflect.EnumNumber(x) 89 } 90 91 // Deprecated: Use Status.Descriptor instead. 92 func (Status) EnumDescriptor() ([]byte, []int) { 93 return file_common_common_proto_rawDescGZIP(), []int{0} 94 } 95 96 type HeaderType int32 97 98 const ( 99 HeaderType_MESSAGE HeaderType = 0 // Used for messages which are signed but opaque 100 HeaderType_CONFIG HeaderType = 1 // Used for messages which express the channel config 101 HeaderType_CONFIG_UPDATE HeaderType = 2 // Used for transactions which update the channel config 102 HeaderType_ENDORSER_TRANSACTION HeaderType = 3 // Used by the SDK to submit endorser based transactions 103 // Deprecated: Marked as deprecated in common/common.proto. 104 HeaderType_ORDERER_TRANSACTION HeaderType = 4 // Was used internally by the orderer for management, no longer used since system channel was removed 105 HeaderType_DELIVER_SEEK_INFO HeaderType = 5 // Used as the type for Envelope messages submitted to instruct the Deliver API to seek 106 HeaderType_CHAINCODE_PACKAGE HeaderType = 6 // Used for packaging chaincode artifacts for install 107 ) 108 109 // Enum value maps for HeaderType. 110 var ( 111 HeaderType_name = map[int32]string{ 112 0: "MESSAGE", 113 1: "CONFIG", 114 2: "CONFIG_UPDATE", 115 3: "ENDORSER_TRANSACTION", 116 4: "ORDERER_TRANSACTION", 117 5: "DELIVER_SEEK_INFO", 118 6: "CHAINCODE_PACKAGE", 119 } 120 HeaderType_value = map[string]int32{ 121 "MESSAGE": 0, 122 "CONFIG": 1, 123 "CONFIG_UPDATE": 2, 124 "ENDORSER_TRANSACTION": 3, 125 "ORDERER_TRANSACTION": 4, 126 "DELIVER_SEEK_INFO": 5, 127 "CHAINCODE_PACKAGE": 6, 128 } 129 ) 130 131 func (x HeaderType) Enum() *HeaderType { 132 p := new(HeaderType) 133 *p = x 134 return p 135 } 136 137 func (x HeaderType) String() string { 138 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 139 } 140 141 func (HeaderType) Descriptor() protoreflect.EnumDescriptor { 142 return file_common_common_proto_enumTypes[1].Descriptor() 143 } 144 145 func (HeaderType) Type() protoreflect.EnumType { 146 return &file_common_common_proto_enumTypes[1] 147 } 148 149 func (x HeaderType) Number() protoreflect.EnumNumber { 150 return protoreflect.EnumNumber(x) 151 } 152 153 // Deprecated: Use HeaderType.Descriptor instead. 154 func (HeaderType) EnumDescriptor() ([]byte, []int) { 155 return file_common_common_proto_rawDescGZIP(), []int{1} 156 } 157 158 // This enum enlists indexes of the block metadata array 159 type BlockMetadataIndex int32 160 161 const ( 162 BlockMetadataIndex_SIGNATURES BlockMetadataIndex = 0 // Block metadata array position for block signatures 163 // Deprecated: Marked as deprecated in common/common.proto. 164 BlockMetadataIndex_LAST_CONFIG BlockMetadataIndex = 1 // Block metadata array position to store last configuration block sequence number 165 BlockMetadataIndex_TRANSACTIONS_FILTER BlockMetadataIndex = 2 // Block metadata array position to store serialized bit array filter of invalid transactions 166 // Deprecated: Marked as deprecated in common/common.proto. 167 BlockMetadataIndex_ORDERER BlockMetadataIndex = 3 // Block metadata array position to store operational metadata for orderers 168 BlockMetadataIndex_COMMIT_HASH BlockMetadataIndex = 4 169 ) 170 171 // Enum value maps for BlockMetadataIndex. 172 var ( 173 BlockMetadataIndex_name = map[int32]string{ 174 0: "SIGNATURES", 175 1: "LAST_CONFIG", 176 2: "TRANSACTIONS_FILTER", 177 3: "ORDERER", 178 4: "COMMIT_HASH", 179 } 180 BlockMetadataIndex_value = map[string]int32{ 181 "SIGNATURES": 0, 182 "LAST_CONFIG": 1, 183 "TRANSACTIONS_FILTER": 2, 184 "ORDERER": 3, 185 "COMMIT_HASH": 4, 186 } 187 ) 188 189 func (x BlockMetadataIndex) Enum() *BlockMetadataIndex { 190 p := new(BlockMetadataIndex) 191 *p = x 192 return p 193 } 194 195 func (x BlockMetadataIndex) String() string { 196 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 197 } 198 199 func (BlockMetadataIndex) Descriptor() protoreflect.EnumDescriptor { 200 return file_common_common_proto_enumTypes[2].Descriptor() 201 } 202 203 func (BlockMetadataIndex) Type() protoreflect.EnumType { 204 return &file_common_common_proto_enumTypes[2] 205 } 206 207 func (x BlockMetadataIndex) Number() protoreflect.EnumNumber { 208 return protoreflect.EnumNumber(x) 209 } 210 211 // Deprecated: Use BlockMetadataIndex.Descriptor instead. 212 func (BlockMetadataIndex) EnumDescriptor() ([]byte, []int) { 213 return file_common_common_proto_rawDescGZIP(), []int{2} 214 } 215 216 // LastConfig is the encoded value for the Metadata message which is encoded in the LAST_CONFIGURATION block metadata index 217 type LastConfig struct { 218 XXX_state protoimpl.MessageState 219 XXX_sizeCache protoimpl.SizeCache 220 XXX_unknownFields protoimpl.UnknownFields 221 222 Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` 223 } 224 225 func (x *LastConfig) Reset() { 226 *x = LastConfig{} 227 if protoimpl.UnsafeEnabled { 228 mi := &file_common_common_proto_msgTypes[0] 229 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 230 ms.StoreMessageInfo(mi) 231 } 232 } 233 234 func (x *LastConfig) String() string { 235 return protoimpl.X.MessageStringOf(x) 236 } 237 238 func (*LastConfig) ProtoMessage() {} 239 240 func (x *LastConfig) ProtoReflect() protoreflect.Message { 241 mi := &file_common_common_proto_msgTypes[0] 242 if protoimpl.UnsafeEnabled && x != nil { 243 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 244 if ms.LoadMessageInfo() == nil { 245 ms.StoreMessageInfo(mi) 246 } 247 return ms 248 } 249 return mi.MessageOf(x) 250 } 251 252 // Deprecated: Use LastConfig.ProtoReflect.Descriptor instead. 253 func (*LastConfig) Descriptor() ([]byte, []int) { 254 return file_common_common_proto_rawDescGZIP(), []int{0} 255 } 256 257 func (x *LastConfig) GetIndex() uint64 { 258 if x != nil { 259 return x.Index 260 } 261 return 0 262 } 263 264 // Metadata is a common structure to be used to encode block metadata 265 type Metadata struct { 266 XXX_state protoimpl.MessageState 267 XXX_sizeCache protoimpl.SizeCache 268 XXX_unknownFields protoimpl.UnknownFields 269 270 Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` 271 Signatures []*MetadataSignature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"` 272 } 273 274 func (x *Metadata) Reset() { 275 *x = Metadata{} 276 if protoimpl.UnsafeEnabled { 277 mi := &file_common_common_proto_msgTypes[1] 278 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 279 ms.StoreMessageInfo(mi) 280 } 281 } 282 283 func (x *Metadata) String() string { 284 return protoimpl.X.MessageStringOf(x) 285 } 286 287 func (*Metadata) ProtoMessage() {} 288 289 func (x *Metadata) ProtoReflect() protoreflect.Message { 290 mi := &file_common_common_proto_msgTypes[1] 291 if protoimpl.UnsafeEnabled && x != nil { 292 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 293 if ms.LoadMessageInfo() == nil { 294 ms.StoreMessageInfo(mi) 295 } 296 return ms 297 } 298 return mi.MessageOf(x) 299 } 300 301 // Deprecated: Use Metadata.ProtoReflect.Descriptor instead. 302 func (*Metadata) Descriptor() ([]byte, []int) { 303 return file_common_common_proto_rawDescGZIP(), []int{1} 304 } 305 306 func (x *Metadata) GetValue() []byte { 307 if x != nil { 308 return x.Value 309 } 310 return nil 311 } 312 313 func (x *Metadata) GetSignatures() []*MetadataSignature { 314 if x != nil { 315 return x.Signatures 316 } 317 return nil 318 } 319 320 type MetadataSignature struct { 321 XXX_state protoimpl.MessageState 322 XXX_sizeCache protoimpl.SizeCache 323 XXX_unknownFields protoimpl.UnknownFields 324 325 SignatureHeader []byte `protobuf:"bytes,1,opt,name=signature_header,json=signatureHeader,proto3" json:"signature_header,omitempty"` // An encoded SignatureHeader 326 Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // The signature over the concatenation of the Metadata value bytes, signatureHeader, and block header 327 IdentifierHeader []byte `protobuf:"bytes,3,opt,name=identifier_header,json=identifierHeader,proto3" json:"identifier_header,omitempty"` // An encoded IdentifierHeader. If the signature header is empty, this is used to identify the creator by id 328 } 329 330 func (x *MetadataSignature) Reset() { 331 *x = MetadataSignature{} 332 if protoimpl.UnsafeEnabled { 333 mi := &file_common_common_proto_msgTypes[2] 334 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 335 ms.StoreMessageInfo(mi) 336 } 337 } 338 339 func (x *MetadataSignature) String() string { 340 return protoimpl.X.MessageStringOf(x) 341 } 342 343 func (*MetadataSignature) ProtoMessage() {} 344 345 func (x *MetadataSignature) ProtoReflect() protoreflect.Message { 346 mi := &file_common_common_proto_msgTypes[2] 347 if protoimpl.UnsafeEnabled && x != nil { 348 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 349 if ms.LoadMessageInfo() == nil { 350 ms.StoreMessageInfo(mi) 351 } 352 return ms 353 } 354 return mi.MessageOf(x) 355 } 356 357 // Deprecated: Use MetadataSignature.ProtoReflect.Descriptor instead. 358 func (*MetadataSignature) Descriptor() ([]byte, []int) { 359 return file_common_common_proto_rawDescGZIP(), []int{2} 360 } 361 362 func (x *MetadataSignature) GetSignatureHeader() []byte { 363 if x != nil { 364 return x.SignatureHeader 365 } 366 return nil 367 } 368 369 func (x *MetadataSignature) GetSignature() []byte { 370 if x != nil { 371 return x.Signature 372 } 373 return nil 374 } 375 376 func (x *MetadataSignature) GetIdentifierHeader() []byte { 377 if x != nil { 378 return x.IdentifierHeader 379 } 380 return nil 381 } 382 383 // IdentifierHeader is used as an alternative to a SignatureHeader when the creator can be referenced by id 384 type IdentifierHeader struct { 385 XXX_state protoimpl.MessageState 386 XXX_sizeCache protoimpl.SizeCache 387 XXX_unknownFields protoimpl.UnknownFields 388 389 Identifier uint32 `protobuf:"varint,1,opt,name=identifier,proto3" json:"identifier,omitempty"` // A unique identifier that represents the creator of the message 390 Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` // Arbitrary number that may only be used once. Can be used to detect replay attacks. 391 } 392 393 func (x *IdentifierHeader) Reset() { 394 *x = IdentifierHeader{} 395 if protoimpl.UnsafeEnabled { 396 mi := &file_common_common_proto_msgTypes[3] 397 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 398 ms.StoreMessageInfo(mi) 399 } 400 } 401 402 func (x *IdentifierHeader) String() string { 403 return protoimpl.X.MessageStringOf(x) 404 } 405 406 func (*IdentifierHeader) ProtoMessage() {} 407 408 func (x *IdentifierHeader) ProtoReflect() protoreflect.Message { 409 mi := &file_common_common_proto_msgTypes[3] 410 if protoimpl.UnsafeEnabled && x != nil { 411 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 412 if ms.LoadMessageInfo() == nil { 413 ms.StoreMessageInfo(mi) 414 } 415 return ms 416 } 417 return mi.MessageOf(x) 418 } 419 420 // Deprecated: Use IdentifierHeader.ProtoReflect.Descriptor instead. 421 func (*IdentifierHeader) Descriptor() ([]byte, []int) { 422 return file_common_common_proto_rawDescGZIP(), []int{3} 423 } 424 425 func (x *IdentifierHeader) GetIdentifier() uint32 { 426 if x != nil { 427 return x.Identifier 428 } 429 return 0 430 } 431 432 func (x *IdentifierHeader) GetNonce() []byte { 433 if x != nil { 434 return x.Nonce 435 } 436 return nil 437 } 438 439 type Header struct { 440 XXX_state protoimpl.MessageState 441 XXX_sizeCache protoimpl.SizeCache 442 XXX_unknownFields protoimpl.UnknownFields 443 444 ChannelHeader []byte `protobuf:"bytes,1,opt,name=channel_header,json=channelHeader,proto3" json:"channel_header,omitempty"` 445 SignatureHeader []byte `protobuf:"bytes,2,opt,name=signature_header,json=signatureHeader,proto3" json:"signature_header,omitempty"` 446 } 447 448 func (x *Header) Reset() { 449 *x = Header{} 450 if protoimpl.UnsafeEnabled { 451 mi := &file_common_common_proto_msgTypes[4] 452 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 453 ms.StoreMessageInfo(mi) 454 } 455 } 456 457 func (x *Header) String() string { 458 return protoimpl.X.MessageStringOf(x) 459 } 460 461 func (*Header) ProtoMessage() {} 462 463 func (x *Header) ProtoReflect() protoreflect.Message { 464 mi := &file_common_common_proto_msgTypes[4] 465 if protoimpl.UnsafeEnabled && x != nil { 466 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 467 if ms.LoadMessageInfo() == nil { 468 ms.StoreMessageInfo(mi) 469 } 470 return ms 471 } 472 return mi.MessageOf(x) 473 } 474 475 // Deprecated: Use Header.ProtoReflect.Descriptor instead. 476 func (*Header) Descriptor() ([]byte, []int) { 477 return file_common_common_proto_rawDescGZIP(), []int{4} 478 } 479 480 func (x *Header) GetChannelHeader() []byte { 481 if x != nil { 482 return x.ChannelHeader 483 } 484 return nil 485 } 486 487 func (x *Header) GetSignatureHeader() []byte { 488 if x != nil { 489 return x.SignatureHeader 490 } 491 return nil 492 } 493 494 // Header is a generic replay prevention and identity message to include in a signed payload 495 type ChannelHeader struct { 496 XXX_state protoimpl.MessageState 497 XXX_sizeCache protoimpl.SizeCache 498 XXX_unknownFields protoimpl.UnknownFields 499 500 Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` // Header types 0-10000 are reserved and defined by HeaderType 501 // Version indicates message protocol version 502 Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` 503 // Timestamp is the local time when the message was created 504 // by the sender 505 Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 506 // Identifier of the channel this message is bound for 507 ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` 508 // An unique identifier that is used end-to-end. 509 // - set by higher layers such as end user or SDK 510 // - passed to the endorser (which will check for uniqueness) 511 // - as the header is passed along unchanged, it will be 512 // be retrieved by the committer (uniqueness check here as well) 513 // - to be stored in the ledger 514 TxId string `protobuf:"bytes,5,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` 515 // The epoch in which this header was generated, where epoch is defined based on block height 516 // Epoch in which the response has been generated. This field identifies a 517 // logical window of time. A proposal response is accepted by a peer only if 518 // two conditions hold: 519 // 1. the epoch specified in the message is the current epoch 520 // 2. this message has been only seen once during this epoch (i.e. it hasn't 521 // been replayed) 522 Epoch uint64 `protobuf:"varint,6,opt,name=epoch,proto3" json:"epoch,omitempty"` 523 // Extension that may be attached based on the header type 524 Extension []byte `protobuf:"bytes,7,opt,name=extension,proto3" json:"extension,omitempty"` 525 // If mutual TLS is employed, this represents 526 // the hash of the client's TLS certificate 527 TlsCertHash []byte `protobuf:"bytes,8,opt,name=tls_cert_hash,json=tlsCertHash,proto3" json:"tls_cert_hash,omitempty"` 528 } 529 530 func (x *ChannelHeader) Reset() { 531 *x = ChannelHeader{} 532 if protoimpl.UnsafeEnabled { 533 mi := &file_common_common_proto_msgTypes[5] 534 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 535 ms.StoreMessageInfo(mi) 536 } 537 } 538 539 func (x *ChannelHeader) String() string { 540 return protoimpl.X.MessageStringOf(x) 541 } 542 543 func (*ChannelHeader) ProtoMessage() {} 544 545 func (x *ChannelHeader) ProtoReflect() protoreflect.Message { 546 mi := &file_common_common_proto_msgTypes[5] 547 if protoimpl.UnsafeEnabled && x != nil { 548 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 549 if ms.LoadMessageInfo() == nil { 550 ms.StoreMessageInfo(mi) 551 } 552 return ms 553 } 554 return mi.MessageOf(x) 555 } 556 557 // Deprecated: Use ChannelHeader.ProtoReflect.Descriptor instead. 558 func (*ChannelHeader) Descriptor() ([]byte, []int) { 559 return file_common_common_proto_rawDescGZIP(), []int{5} 560 } 561 562 func (x *ChannelHeader) GetType() int32 { 563 if x != nil { 564 return x.Type 565 } 566 return 0 567 } 568 569 func (x *ChannelHeader) GetVersion() int32 { 570 if x != nil { 571 return x.Version 572 } 573 return 0 574 } 575 576 func (x *ChannelHeader) GetTimestamp() *timestamppb.Timestamp { 577 if x != nil { 578 return x.Timestamp 579 } 580 return nil 581 } 582 583 func (x *ChannelHeader) GetChannelId() string { 584 if x != nil { 585 return x.ChannelId 586 } 587 return "" 588 } 589 590 func (x *ChannelHeader) GetTxId() string { 591 if x != nil { 592 return x.TxId 593 } 594 return "" 595 } 596 597 func (x *ChannelHeader) GetEpoch() uint64 { 598 if x != nil { 599 return x.Epoch 600 } 601 return 0 602 } 603 604 func (x *ChannelHeader) GetExtension() []byte { 605 if x != nil { 606 return x.Extension 607 } 608 return nil 609 } 610 611 func (x *ChannelHeader) GetTlsCertHash() []byte { 612 if x != nil { 613 return x.TlsCertHash 614 } 615 return nil 616 } 617 618 type SignatureHeader struct { 619 XXX_state protoimpl.MessageState 620 XXX_sizeCache protoimpl.SizeCache 621 XXX_unknownFields protoimpl.UnknownFields 622 623 // Creator of the message, a marshaled msp.SerializedIdentity 624 Creator []byte `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` 625 // Arbitrary number that may only be used once. Can be used to detect replay attacks. 626 Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` 627 } 628 629 func (x *SignatureHeader) Reset() { 630 *x = SignatureHeader{} 631 if protoimpl.UnsafeEnabled { 632 mi := &file_common_common_proto_msgTypes[6] 633 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 634 ms.StoreMessageInfo(mi) 635 } 636 } 637 638 func (x *SignatureHeader) String() string { 639 return protoimpl.X.MessageStringOf(x) 640 } 641 642 func (*SignatureHeader) ProtoMessage() {} 643 644 func (x *SignatureHeader) ProtoReflect() protoreflect.Message { 645 mi := &file_common_common_proto_msgTypes[6] 646 if protoimpl.UnsafeEnabled && x != nil { 647 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 648 if ms.LoadMessageInfo() == nil { 649 ms.StoreMessageInfo(mi) 650 } 651 return ms 652 } 653 return mi.MessageOf(x) 654 } 655 656 // Deprecated: Use SignatureHeader.ProtoReflect.Descriptor instead. 657 func (*SignatureHeader) Descriptor() ([]byte, []int) { 658 return file_common_common_proto_rawDescGZIP(), []int{6} 659 } 660 661 func (x *SignatureHeader) GetCreator() []byte { 662 if x != nil { 663 return x.Creator 664 } 665 return nil 666 } 667 668 func (x *SignatureHeader) GetNonce() []byte { 669 if x != nil { 670 return x.Nonce 671 } 672 return nil 673 } 674 675 // Payload is the message contents (and header to allow for signing) 676 type Payload struct { 677 XXX_state protoimpl.MessageState 678 XXX_sizeCache protoimpl.SizeCache 679 XXX_unknownFields protoimpl.UnknownFields 680 681 // Header is included to provide identity and prevent replay 682 Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` 683 // Data, the encoding of which is defined by the type in the header 684 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 685 } 686 687 func (x *Payload) Reset() { 688 *x = Payload{} 689 if protoimpl.UnsafeEnabled { 690 mi := &file_common_common_proto_msgTypes[7] 691 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 692 ms.StoreMessageInfo(mi) 693 } 694 } 695 696 func (x *Payload) String() string { 697 return protoimpl.X.MessageStringOf(x) 698 } 699 700 func (*Payload) ProtoMessage() {} 701 702 func (x *Payload) ProtoReflect() protoreflect.Message { 703 mi := &file_common_common_proto_msgTypes[7] 704 if protoimpl.UnsafeEnabled && x != nil { 705 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 706 if ms.LoadMessageInfo() == nil { 707 ms.StoreMessageInfo(mi) 708 } 709 return ms 710 } 711 return mi.MessageOf(x) 712 } 713 714 // Deprecated: Use Payload.ProtoReflect.Descriptor instead. 715 func (*Payload) Descriptor() ([]byte, []int) { 716 return file_common_common_proto_rawDescGZIP(), []int{7} 717 } 718 719 func (x *Payload) GetHeader() *Header { 720 if x != nil { 721 return x.Header 722 } 723 return nil 724 } 725 726 func (x *Payload) GetData() []byte { 727 if x != nil { 728 return x.Data 729 } 730 return nil 731 } 732 733 // Envelope wraps a Payload with a signature so that the message may be authenticated 734 type Envelope struct { 735 XXX_state protoimpl.MessageState 736 XXX_sizeCache protoimpl.SizeCache 737 XXX_unknownFields protoimpl.UnknownFields 738 739 // A marshaled Payload 740 Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 741 // A signature by the creator specified in the Payload header 742 Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` 743 Redactable bool `protobuf:"varint,3,opt,name=redactable,proto3" json:"redactable,omitempty"` 744 RedactMessage []byte `protobuf:"bytes,4,opt,name=redactMessage,proto3" json:"redactMessage,omitempty"` 745 } 746 747 func (x *Envelope) Reset() { 748 *x = Envelope{} 749 if protoimpl.UnsafeEnabled { 750 mi := &file_common_common_proto_msgTypes[8] 751 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 752 ms.StoreMessageInfo(mi) 753 } 754 } 755 756 func (x *Envelope) String() string { 757 return protoimpl.X.MessageStringOf(x) 758 } 759 760 func (*Envelope) ProtoMessage() {} 761 762 func (x *Envelope) ProtoReflect() protoreflect.Message { 763 mi := &file_common_common_proto_msgTypes[8] 764 if protoimpl.UnsafeEnabled && x != nil { 765 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 766 if ms.LoadMessageInfo() == nil { 767 ms.StoreMessageInfo(mi) 768 } 769 return ms 770 } 771 return mi.MessageOf(x) 772 } 773 774 // Deprecated: Use Envelope.ProtoReflect.Descriptor instead. 775 func (*Envelope) Descriptor() ([]byte, []int) { 776 return file_common_common_proto_rawDescGZIP(), []int{8} 777 } 778 779 func (x *Envelope) GetPayload() []byte { 780 if x != nil { 781 return x.Payload 782 } 783 return nil 784 } 785 786 func (x *Envelope) GetSignature() []byte { 787 if x != nil { 788 return x.Signature 789 } 790 return nil 791 } 792 793 func (x *Envelope) GetRedactable() bool { 794 if x != nil { 795 return x.Redactable 796 } 797 return false 798 } 799 800 func (x *Envelope) GetRedactMessage() []byte { 801 if x != nil { 802 return x.RedactMessage 803 } 804 return nil 805 } 806 807 type RedactMsg struct { 808 XXX_state protoimpl.MessageState 809 XXX_sizeCache protoimpl.SizeCache 810 XXX_unknownFields protoimpl.UnknownFields 811 812 Pk []byte `protobuf:"bytes,1,opt,name=pk,proto3" json:"pk,omitempty"` 813 Msp []byte `protobuf:"bytes,2,opt,name=msp,proto3" json:"msp,omitempty"` 814 FameCipher []byte `protobuf:"bytes,3,opt,name=fameCipher,proto3" json:"fameCipher,omitempty"` 815 } 816 817 func (x *RedactMsg) Reset() { 818 *x = RedactMsg{} 819 if protoimpl.UnsafeEnabled { 820 mi := &file_common_common_proto_msgTypes[9] 821 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 822 ms.StoreMessageInfo(mi) 823 } 824 } 825 826 func (x *RedactMsg) String() string { 827 return protoimpl.X.MessageStringOf(x) 828 } 829 830 func (*RedactMsg) ProtoMessage() {} 831 832 func (x *RedactMsg) ProtoReflect() protoreflect.Message { 833 mi := &file_common_common_proto_msgTypes[9] 834 if protoimpl.UnsafeEnabled && x != nil { 835 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 836 if ms.LoadMessageInfo() == nil { 837 ms.StoreMessageInfo(mi) 838 } 839 return ms 840 } 841 return mi.MessageOf(x) 842 } 843 844 // Deprecated: Use RedactMsg.ProtoReflect.Descriptor instead. 845 func (*RedactMsg) Descriptor() ([]byte, []int) { 846 return file_common_common_proto_rawDescGZIP(), []int{9} 847 } 848 849 func (x *RedactMsg) GetPk() []byte { 850 if x != nil { 851 return x.Pk 852 } 853 return nil 854 } 855 856 func (x *RedactMsg) GetMsp() []byte { 857 if x != nil { 858 return x.Msp 859 } 860 return nil 861 } 862 863 func (x *RedactMsg) GetFameCipher() []byte { 864 if x != nil { 865 return x.FameCipher 866 } 867 return nil 868 } 869 870 // This is finalized block structure to be shared among the orderer and peer 871 // Note that the BlockHeader chains to the previous BlockHeader, and the BlockData hash is embedded 872 // in the BlockHeader. This makes it natural and obvious that the Data is included in the hash, but 873 // the Metadata is not. 874 type Block struct { 875 XXX_state protoimpl.MessageState 876 XXX_sizeCache protoimpl.SizeCache 877 XXX_unknownFields protoimpl.UnknownFields 878 879 Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` 880 Data *BlockData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 881 Metadata *BlockMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` 882 } 883 884 func (x *Block) Reset() { 885 *x = Block{} 886 if protoimpl.UnsafeEnabled { 887 mi := &file_common_common_proto_msgTypes[10] 888 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 889 ms.StoreMessageInfo(mi) 890 } 891 } 892 893 func (x *Block) String() string { 894 return protoimpl.X.MessageStringOf(x) 895 } 896 897 func (*Block) ProtoMessage() {} 898 899 func (x *Block) ProtoReflect() protoreflect.Message { 900 mi := &file_common_common_proto_msgTypes[10] 901 if protoimpl.UnsafeEnabled && x != nil { 902 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 903 if ms.LoadMessageInfo() == nil { 904 ms.StoreMessageInfo(mi) 905 } 906 return ms 907 } 908 return mi.MessageOf(x) 909 } 910 911 // Deprecated: Use Block.ProtoReflect.Descriptor instead. 912 func (*Block) Descriptor() ([]byte, []int) { 913 return file_common_common_proto_rawDescGZIP(), []int{10} 914 } 915 916 func (x *Block) GetHeader() *BlockHeader { 917 if x != nil { 918 return x.Header 919 } 920 return nil 921 } 922 923 func (x *Block) GetData() *BlockData { 924 if x != nil { 925 return x.Data 926 } 927 return nil 928 } 929 930 func (x *Block) GetMetadata() *BlockMetadata { 931 if x != nil { 932 return x.Metadata 933 } 934 return nil 935 } 936 937 // BlockHeader is the element of the block which forms the block chain 938 // The block header is hashed using the configured chain hashing algorithm 939 // over the ASN.1 encoding of the BlockHeader 940 type BlockHeader struct { 941 XXX_state protoimpl.MessageState 942 XXX_sizeCache protoimpl.SizeCache 943 XXX_unknownFields protoimpl.UnknownFields 944 945 Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The position in the blockchain 946 PreviousHash []byte `protobuf:"bytes,2,opt,name=previous_hash,json=previousHash,proto3" json:"previous_hash,omitempty"` // The hash of the previous block header 947 DataHash []byte `protobuf:"bytes,3,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` // The hash of the BlockData, by MerkleTree 948 } 949 950 func (x *BlockHeader) Reset() { 951 *x = BlockHeader{} 952 if protoimpl.UnsafeEnabled { 953 mi := &file_common_common_proto_msgTypes[11] 954 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 955 ms.StoreMessageInfo(mi) 956 } 957 } 958 959 func (x *BlockHeader) String() string { 960 return protoimpl.X.MessageStringOf(x) 961 } 962 963 func (*BlockHeader) ProtoMessage() {} 964 965 func (x *BlockHeader) ProtoReflect() protoreflect.Message { 966 mi := &file_common_common_proto_msgTypes[11] 967 if protoimpl.UnsafeEnabled && x != nil { 968 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 969 if ms.LoadMessageInfo() == nil { 970 ms.StoreMessageInfo(mi) 971 } 972 return ms 973 } 974 return mi.MessageOf(x) 975 } 976 977 // Deprecated: Use BlockHeader.ProtoReflect.Descriptor instead. 978 func (*BlockHeader) Descriptor() ([]byte, []int) { 979 return file_common_common_proto_rawDescGZIP(), []int{11} 980 } 981 982 func (x *BlockHeader) GetNumber() uint64 { 983 if x != nil { 984 return x.Number 985 } 986 return 0 987 } 988 989 func (x *BlockHeader) GetPreviousHash() []byte { 990 if x != nil { 991 return x.PreviousHash 992 } 993 return nil 994 } 995 996 func (x *BlockHeader) GetDataHash() []byte { 997 if x != nil { 998 return x.DataHash 999 } 1000 return nil 1001 } 1002 1003 type BlockData struct { 1004 XXX_state protoimpl.MessageState 1005 XXX_sizeCache protoimpl.SizeCache 1006 XXX_unknownFields protoimpl.UnknownFields 1007 1008 Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` 1009 } 1010 1011 func (x *BlockData) Reset() { 1012 *x = BlockData{} 1013 if protoimpl.UnsafeEnabled { 1014 mi := &file_common_common_proto_msgTypes[12] 1015 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1016 ms.StoreMessageInfo(mi) 1017 } 1018 } 1019 1020 func (x *BlockData) String() string { 1021 return protoimpl.X.MessageStringOf(x) 1022 } 1023 1024 func (*BlockData) ProtoMessage() {} 1025 1026 func (x *BlockData) ProtoReflect() protoreflect.Message { 1027 mi := &file_common_common_proto_msgTypes[12] 1028 if protoimpl.UnsafeEnabled && x != nil { 1029 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1030 if ms.LoadMessageInfo() == nil { 1031 ms.StoreMessageInfo(mi) 1032 } 1033 return ms 1034 } 1035 return mi.MessageOf(x) 1036 } 1037 1038 // Deprecated: Use BlockData.ProtoReflect.Descriptor instead. 1039 func (*BlockData) Descriptor() ([]byte, []int) { 1040 return file_common_common_proto_rawDescGZIP(), []int{12} 1041 } 1042 1043 func (x *BlockData) GetData() [][]byte { 1044 if x != nil { 1045 return x.Data 1046 } 1047 return nil 1048 } 1049 1050 type BlockMetadata struct { 1051 XXX_state protoimpl.MessageState 1052 XXX_sizeCache protoimpl.SizeCache 1053 XXX_unknownFields protoimpl.UnknownFields 1054 1055 Metadata [][]byte `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty"` 1056 } 1057 1058 func (x *BlockMetadata) Reset() { 1059 *x = BlockMetadata{} 1060 if protoimpl.UnsafeEnabled { 1061 mi := &file_common_common_proto_msgTypes[13] 1062 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1063 ms.StoreMessageInfo(mi) 1064 } 1065 } 1066 1067 func (x *BlockMetadata) String() string { 1068 return protoimpl.X.MessageStringOf(x) 1069 } 1070 1071 func (*BlockMetadata) ProtoMessage() {} 1072 1073 func (x *BlockMetadata) ProtoReflect() protoreflect.Message { 1074 mi := &file_common_common_proto_msgTypes[13] 1075 if protoimpl.UnsafeEnabled && x != nil { 1076 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1077 if ms.LoadMessageInfo() == nil { 1078 ms.StoreMessageInfo(mi) 1079 } 1080 return ms 1081 } 1082 return mi.MessageOf(x) 1083 } 1084 1085 // Deprecated: Use BlockMetadata.ProtoReflect.Descriptor instead. 1086 func (*BlockMetadata) Descriptor() ([]byte, []int) { 1087 return file_common_common_proto_rawDescGZIP(), []int{13} 1088 } 1089 1090 func (x *BlockMetadata) GetMetadata() [][]byte { 1091 if x != nil { 1092 return x.Metadata 1093 } 1094 return nil 1095 } 1096 1097 // OrdererBlockMetadata defines metadata that is set by the ordering service. 1098 type OrdererBlockMetadata struct { 1099 XXX_state protoimpl.MessageState 1100 XXX_sizeCache protoimpl.SizeCache 1101 XXX_unknownFields protoimpl.UnknownFields 1102 1103 LastConfig *LastConfig `protobuf:"bytes,1,opt,name=last_config,json=lastConfig,proto3" json:"last_config,omitempty"` 1104 ConsenterMetadata []byte `protobuf:"bytes,2,opt,name=consenter_metadata,json=consenterMetadata,proto3" json:"consenter_metadata,omitempty"` 1105 } 1106 1107 func (x *OrdererBlockMetadata) Reset() { 1108 *x = OrdererBlockMetadata{} 1109 if protoimpl.UnsafeEnabled { 1110 mi := &file_common_common_proto_msgTypes[14] 1111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1112 ms.StoreMessageInfo(mi) 1113 } 1114 } 1115 1116 func (x *OrdererBlockMetadata) String() string { 1117 return protoimpl.X.MessageStringOf(x) 1118 } 1119 1120 func (*OrdererBlockMetadata) ProtoMessage() {} 1121 1122 func (x *OrdererBlockMetadata) ProtoReflect() protoreflect.Message { 1123 mi := &file_common_common_proto_msgTypes[14] 1124 if protoimpl.UnsafeEnabled && x != nil { 1125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1126 if ms.LoadMessageInfo() == nil { 1127 ms.StoreMessageInfo(mi) 1128 } 1129 return ms 1130 } 1131 return mi.MessageOf(x) 1132 } 1133 1134 // Deprecated: Use OrdererBlockMetadata.ProtoReflect.Descriptor instead. 1135 func (*OrdererBlockMetadata) Descriptor() ([]byte, []int) { 1136 return file_common_common_proto_rawDescGZIP(), []int{14} 1137 } 1138 1139 func (x *OrdererBlockMetadata) GetLastConfig() *LastConfig { 1140 if x != nil { 1141 return x.LastConfig 1142 } 1143 return nil 1144 } 1145 1146 func (x *OrdererBlockMetadata) GetConsenterMetadata() []byte { 1147 if x != nil { 1148 return x.ConsenterMetadata 1149 } 1150 return nil 1151 } 1152 1153 var File_common_common_proto protoreflect.FileDescriptor 1154 1155 var file_common_common_proto_rawDesc = []byte{ 1156 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 1157 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x1a, 0x1f, 0x67, 1158 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 1159 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x22, 1160 0x0a, 0x0a, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05, 1161 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 1162 0x65, 0x78, 0x22, 0x5b, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 1163 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 1164 0x61, 0x6c, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 1165 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 1166 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 1167 0x75, 0x72, 0x65, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 1168 0x89, 0x01, 0x0a, 0x11, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x69, 0x67, 0x6e, 1169 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 1170 0x72, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 1171 0x0f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 1172 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 1173 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x2b, 1174 0x0a, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x68, 0x65, 0x61, 1175 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x69, 0x64, 0x65, 0x6e, 0x74, 1176 0x69, 0x66, 0x69, 0x65, 0x72, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x48, 0x0a, 0x10, 0x49, 1177 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 1178 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 1179 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 1180 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 1181 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x5a, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 1182 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 1183 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 1184 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 1185 0x75, 0x72, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 1186 0x52, 0x0f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 1187 0x72, 0x22, 0x83, 0x02, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x48, 0x65, 0x61, 1188 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 1189 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 1190 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 1191 0x6e, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 1192 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 1193 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 1194 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 1195 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 1196 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x78, 1197 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, 0x49, 0x64, 0x12, 1198 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 1199 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 1200 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 1201 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0d, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 1202 0x68, 0x61, 0x73, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x74, 0x6c, 0x73, 0x43, 1203 0x65, 0x72, 0x74, 0x48, 0x61, 0x73, 0x68, 0x22, 0x41, 0x0a, 0x0f, 0x53, 0x69, 0x67, 0x6e, 0x61, 1204 0x74, 0x75, 0x72, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 1205 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x72, 0x65, 1206 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 1207 0x01, 0x28, 0x0c, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x45, 0x0a, 0x07, 0x50, 0x61, 1208 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x26, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 1209 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x48, 1210 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 1211 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 1212 0x61, 0x22, 0x88, 0x01, 0x0a, 0x08, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x18, 1213 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 1214 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 1215 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 1216 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x64, 0x61, 0x63, 0x74, 1217 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x72, 0x65, 0x64, 0x61, 1218 0x63, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x64, 0x61, 0x63, 0x74, 1219 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x72, 1220 0x65, 0x64, 0x61, 0x63, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x4d, 0x0a, 0x09, 1221 0x52, 0x65, 0x64, 0x61, 0x63, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x70, 0x6b, 0x18, 1222 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x70, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x70, 1223 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6d, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 1224 0x61, 0x6d, 0x65, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 1225 0x0a, 0x66, 0x61, 0x6d, 0x65, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x22, 0x8e, 0x01, 0x0a, 0x05, 1226 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2b, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 1227 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x42, 1228 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 1229 0x65, 0x72, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 1230 0x32, 0x11, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x44, 1231 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x08, 0x6d, 0x65, 0x74, 1232 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 1233 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 1234 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x67, 0x0a, 0x0b, 1235 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6e, 1236 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6e, 0x75, 0x6d, 1237 0x62, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 1238 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x76, 1239 0x69, 0x6f, 0x75, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 1240 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x61, 0x74, 1241 0x61, 0x48, 0x61, 0x73, 0x68, 0x22, 0x1f, 0x0a, 0x09, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x44, 0x61, 1242 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 1243 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2b, 0x0a, 0x0d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 1244 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 1245 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 1246 0x61, 0x74, 0x61, 0x22, 0x7a, 0x0a, 0x14, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x65, 0x72, 0x42, 0x6c, 1247 0x6f, 0x63, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x33, 0x0a, 0x0b, 0x6c, 1248 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 1249 0x32, 0x12, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 1250 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 1251 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x6d, 0x65, 1252 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x63, 0x6f, 1253 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2a, 1254 0xc0, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 1255 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 1256 0x53, 0x53, 0x10, 0xc8, 0x01, 0x12, 0x10, 0x0a, 0x0b, 0x42, 0x41, 0x44, 0x5f, 0x52, 0x45, 0x51, 1257 0x55, 0x45, 0x53, 0x54, 0x10, 0x90, 0x03, 0x12, 0x0e, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x42, 0x49, 1258 0x44, 0x44, 0x45, 0x4e, 0x10, 0x93, 0x03, 0x12, 0x0e, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 1259 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x94, 0x03, 0x12, 0x1d, 0x0a, 0x18, 0x52, 0x45, 0x51, 0x55, 0x45, 1260 0x53, 0x54, 0x5f, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f, 0x54, 0x4f, 0x4f, 0x5f, 0x4c, 0x41, 1261 0x52, 0x47, 0x45, 0x10, 0x9d, 0x03, 0x12, 0x1a, 0x0a, 0x15, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 1262 0x41, 0x4c, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 1263 0xf4, 0x03, 0x12, 0x14, 0x0a, 0x0f, 0x4e, 0x4f, 0x54, 0x5f, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x4d, 1264 0x45, 0x4e, 0x54, 0x45, 0x44, 0x10, 0xf5, 0x03, 0x12, 0x18, 0x0a, 0x13, 0x53, 0x45, 0x52, 0x56, 1265 0x49, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 1266 0xf7, 0x03, 0x2a, 0xee, 0x01, 0x0a, 0x0a, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 1267 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x00, 0x12, 0x0a, 1268 0x0a, 0x06, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x4f, 1269 0x4e, 0x46, 0x49, 0x47, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x18, 0x0a, 1270 0x14, 0x45, 0x4e, 0x44, 0x4f, 0x52, 0x53, 0x45, 0x52, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 1271 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x13, 0x4f, 0x52, 0x44, 0x45, 0x52, 1272 0x45, 0x52, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 1273 0x1a, 0x02, 0x08, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x45, 0x4c, 0x49, 0x56, 0x45, 0x52, 0x5f, 1274 0x53, 0x45, 0x45, 0x4b, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x05, 0x12, 0x15, 0x0a, 0x11, 0x43, 1275 0x48, 0x41, 0x49, 0x4e, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x41, 0x47, 0x45, 1276 0x10, 0x06, 0x22, 0x04, 0x08, 0x07, 0x10, 0x07, 0x22, 0x04, 0x08, 0x08, 0x10, 0x08, 0x22, 0x04, 1277 0x08, 0x09, 0x10, 0x09, 0x2a, 0x14, 0x50, 0x45, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 1278 0x52, 0x43, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x2a, 0x14, 0x50, 0x45, 0x45, 0x52, 1279 0x5f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 1280 0x2a, 0x11, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 1281 0x49, 0x4f, 0x4e, 0x2a, 0x74, 0x0a, 0x12, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 0x65, 0x74, 0x61, 1282 0x64, 0x61, 0x74, 0x61, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x49, 0x47, 1283 0x4e, 0x41, 0x54, 0x55, 0x52, 0x45, 0x53, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0b, 0x4c, 0x41, 0x53, 1284 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x10, 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x17, 1285 0x0a, 0x13, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x5f, 0x46, 1286 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x07, 0x4f, 0x52, 0x44, 0x45, 0x52, 1287 0x45, 0x52, 0x10, 0x03, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x4f, 0x4d, 0x4d, 1288 0x49, 0x54, 0x5f, 0x48, 0x41, 0x53, 0x48, 0x10, 0x04, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 1289 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x5a, 0x69, 0x68, 0x75, 0x61, 0x5a, 0x68, 0x61, 1290 0x6e, 0x67, 0x2f, 0x66, 0x61, 0x62, 0x72, 0x69, 0x63, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 1291 0x2d, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 1292 0x6f, 0x33, 1293 } 1294 1295 var ( 1296 file_common_common_proto_rawDescOnce sync.Once 1297 file_common_common_proto_rawDescData = file_common_common_proto_rawDesc 1298 ) 1299 1300 func file_common_common_proto_rawDescGZIP() []byte { 1301 file_common_common_proto_rawDescOnce.Do(func() { 1302 file_common_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_common_proto_rawDescData) 1303 }) 1304 return file_common_common_proto_rawDescData 1305 } 1306 1307 var file_common_common_proto_enumTypes = make([]protoimpl.EnumInfo, 3) 1308 var file_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 15) 1309 var file_common_common_proto_goTypes = []interface{}{ 1310 (Status)(0), // 0: common.Status 1311 (HeaderType)(0), // 1: common.HeaderType 1312 (BlockMetadataIndex)(0), // 2: common.BlockMetadataIndex 1313 (*LastConfig)(nil), // 3: common.LastConfig 1314 (*Metadata)(nil), // 4: common.Metadata 1315 (*MetadataSignature)(nil), // 5: common.MetadataSignature 1316 (*IdentifierHeader)(nil), // 6: common.IdentifierHeader 1317 (*Header)(nil), // 7: common.Header 1318 (*ChannelHeader)(nil), // 8: common.ChannelHeader 1319 (*SignatureHeader)(nil), // 9: common.SignatureHeader 1320 (*Payload)(nil), // 10: common.Payload 1321 (*Envelope)(nil), // 11: common.Envelope 1322 (*RedactMsg)(nil), // 12: common.RedactMsg 1323 (*Block)(nil), // 13: common.Block 1324 (*BlockHeader)(nil), // 14: common.BlockHeader 1325 (*BlockData)(nil), // 15: common.BlockData 1326 (*BlockMetadata)(nil), // 16: common.BlockMetadata 1327 (*OrdererBlockMetadata)(nil), // 17: common.OrdererBlockMetadata 1328 (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp 1329 } 1330 var file_common_common_proto_depIdxs = []int32{ 1331 5, // 0: common.Metadata.signatures:type_name -> common.MetadataSignature 1332 18, // 1: common.ChannelHeader.timestamp:type_name -> google.protobuf.Timestamp 1333 7, // 2: common.Payload.header:type_name -> common.Header 1334 14, // 3: common.Block.header:type_name -> common.BlockHeader 1335 15, // 4: common.Block.data:type_name -> common.BlockData 1336 16, // 5: common.Block.metadata:type_name -> common.BlockMetadata 1337 3, // 6: common.OrdererBlockMetadata.last_config:type_name -> common.LastConfig 1338 7, // [7:7] is the sub-list for method output_type 1339 7, // [7:7] is the sub-list for method input_type 1340 7, // [7:7] is the sub-list for extension type_name 1341 7, // [7:7] is the sub-list for extension extendee 1342 0, // [0:7] is the sub-list for field type_name 1343 } 1344 1345 func init() { file_common_common_proto_init() } 1346 func file_common_common_proto_init() { 1347 if File_common_common_proto != nil { 1348 return 1349 } 1350 if !protoimpl.UnsafeEnabled { 1351 file_common_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1352 switch v := v.(*LastConfig); i { 1353 case 0: 1354 return &v.XXX_state 1355 case 1: 1356 return &v.XXX_sizeCache 1357 case 2: 1358 return &v.XXX_unknownFields 1359 default: 1360 return nil 1361 } 1362 } 1363 file_common_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1364 switch v := v.(*Metadata); i { 1365 case 0: 1366 return &v.XXX_state 1367 case 1: 1368 return &v.XXX_sizeCache 1369 case 2: 1370 return &v.XXX_unknownFields 1371 default: 1372 return nil 1373 } 1374 } 1375 file_common_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1376 switch v := v.(*MetadataSignature); i { 1377 case 0: 1378 return &v.XXX_state 1379 case 1: 1380 return &v.XXX_sizeCache 1381 case 2: 1382 return &v.XXX_unknownFields 1383 default: 1384 return nil 1385 } 1386 } 1387 file_common_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1388 switch v := v.(*IdentifierHeader); i { 1389 case 0: 1390 return &v.XXX_state 1391 case 1: 1392 return &v.XXX_sizeCache 1393 case 2: 1394 return &v.XXX_unknownFields 1395 default: 1396 return nil 1397 } 1398 } 1399 file_common_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1400 switch v := v.(*Header); i { 1401 case 0: 1402 return &v.XXX_state 1403 case 1: 1404 return &v.XXX_sizeCache 1405 case 2: 1406 return &v.XXX_unknownFields 1407 default: 1408 return nil 1409 } 1410 } 1411 file_common_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1412 switch v := v.(*ChannelHeader); i { 1413 case 0: 1414 return &v.XXX_state 1415 case 1: 1416 return &v.XXX_sizeCache 1417 case 2: 1418 return &v.XXX_unknownFields 1419 default: 1420 return nil 1421 } 1422 } 1423 file_common_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1424 switch v := v.(*SignatureHeader); i { 1425 case 0: 1426 return &v.XXX_state 1427 case 1: 1428 return &v.XXX_sizeCache 1429 case 2: 1430 return &v.XXX_unknownFields 1431 default: 1432 return nil 1433 } 1434 } 1435 file_common_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1436 switch v := v.(*Payload); i { 1437 case 0: 1438 return &v.XXX_state 1439 case 1: 1440 return &v.XXX_sizeCache 1441 case 2: 1442 return &v.XXX_unknownFields 1443 default: 1444 return nil 1445 } 1446 } 1447 file_common_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1448 switch v := v.(*Envelope); i { 1449 case 0: 1450 return &v.XXX_state 1451 case 1: 1452 return &v.XXX_sizeCache 1453 case 2: 1454 return &v.XXX_unknownFields 1455 default: 1456 return nil 1457 } 1458 } 1459 file_common_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1460 switch v := v.(*RedactMsg); i { 1461 case 0: 1462 return &v.XXX_state 1463 case 1: 1464 return &v.XXX_sizeCache 1465 case 2: 1466 return &v.XXX_unknownFields 1467 default: 1468 return nil 1469 } 1470 } 1471 file_common_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1472 switch v := v.(*Block); i { 1473 case 0: 1474 return &v.XXX_state 1475 case 1: 1476 return &v.XXX_sizeCache 1477 case 2: 1478 return &v.XXX_unknownFields 1479 default: 1480 return nil 1481 } 1482 } 1483 file_common_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1484 switch v := v.(*BlockHeader); i { 1485 case 0: 1486 return &v.XXX_state 1487 case 1: 1488 return &v.XXX_sizeCache 1489 case 2: 1490 return &v.XXX_unknownFields 1491 default: 1492 return nil 1493 } 1494 } 1495 file_common_common_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { 1496 switch v := v.(*BlockData); i { 1497 case 0: 1498 return &v.XXX_state 1499 case 1: 1500 return &v.XXX_sizeCache 1501 case 2: 1502 return &v.XXX_unknownFields 1503 default: 1504 return nil 1505 } 1506 } 1507 file_common_common_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { 1508 switch v := v.(*BlockMetadata); i { 1509 case 0: 1510 return &v.XXX_state 1511 case 1: 1512 return &v.XXX_sizeCache 1513 case 2: 1514 return &v.XXX_unknownFields 1515 default: 1516 return nil 1517 } 1518 } 1519 file_common_common_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { 1520 switch v := v.(*OrdererBlockMetadata); i { 1521 case 0: 1522 return &v.XXX_state 1523 case 1: 1524 return &v.XXX_sizeCache 1525 case 2: 1526 return &v.XXX_unknownFields 1527 default: 1528 return nil 1529 } 1530 } 1531 } 1532 type x struct{} 1533 out := protoimpl.TypeBuilder{ 1534 File: protoimpl.DescBuilder{ 1535 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1536 RawDescriptor: file_common_common_proto_rawDesc, 1537 NumEnums: 3, 1538 NumMessages: 15, 1539 NumExtensions: 0, 1540 NumServices: 0, 1541 }, 1542 GoTypes: file_common_common_proto_goTypes, 1543 DependencyIndexes: file_common_common_proto_depIdxs, 1544 EnumInfos: file_common_common_proto_enumTypes, 1545 MessageInfos: file_common_common_proto_msgTypes, 1546 }.Build() 1547 File_common_common_proto = out.File 1548 file_common_common_proto_rawDesc = nil 1549 file_common_common_proto_goTypes = nil 1550 file_common_common_proto_depIdxs = nil 1551 }