github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/protos/common/configuration.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: common/configuration.proto 3 4 package common 5 6 import proto "github.com/golang/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 10 // Reference imports to suppress errors if they are not otherwise used. 11 var _ = proto.Marshal 12 var _ = fmt.Errorf 13 var _ = math.Inf 14 15 // HashingAlgorithm is encoded into the configuration transaction as a configuration item of type Chain 16 // with a Key of "HashingAlgorithm" and a Value of HashingAlgorithm as marshaled protobuf bytes 17 type HashingAlgorithm struct { 18 // Currently supported algorithms are: SHAKE256 19 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 20 } 21 22 func (m *HashingAlgorithm) Reset() { *m = HashingAlgorithm{} } 23 func (m *HashingAlgorithm) String() string { return proto.CompactTextString(m) } 24 func (*HashingAlgorithm) ProtoMessage() {} 25 func (*HashingAlgorithm) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} } 26 27 func (m *HashingAlgorithm) GetName() string { 28 if m != nil { 29 return m.Name 30 } 31 return "" 32 } 33 34 // BlockDataHashingStructure is encoded into the configuration transaction as a configuration item of 35 // type Chain with a Key of "BlockDataHashingStructure" and a Value of HashingAlgorithm as marshaled protobuf bytes 36 type BlockDataHashingStructure struct { 37 // width specifies the width of the Merkle tree to use when computing the BlockDataHash 38 // in order to replicate flat hashing, set this width to MAX_UINT32 39 Width uint32 `protobuf:"varint,1,opt,name=width" json:"width,omitempty"` 40 } 41 42 func (m *BlockDataHashingStructure) Reset() { *m = BlockDataHashingStructure{} } 43 func (m *BlockDataHashingStructure) String() string { return proto.CompactTextString(m) } 44 func (*BlockDataHashingStructure) ProtoMessage() {} 45 func (*BlockDataHashingStructure) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} } 46 47 func (m *BlockDataHashingStructure) GetWidth() uint32 { 48 if m != nil { 49 return m.Width 50 } 51 return 0 52 } 53 54 // OrdererAddresses is encoded into the configuration transaction as a configuration item of type Chain 55 // with a Key of "OrdererAddresses" and a Value of OrdererAddresses as marshaled protobuf bytes 56 type OrdererAddresses struct { 57 Addresses []string `protobuf:"bytes,1,rep,name=addresses" json:"addresses,omitempty"` 58 } 59 60 func (m *OrdererAddresses) Reset() { *m = OrdererAddresses{} } 61 func (m *OrdererAddresses) String() string { return proto.CompactTextString(m) } 62 func (*OrdererAddresses) ProtoMessage() {} 63 func (*OrdererAddresses) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} } 64 65 func (m *OrdererAddresses) GetAddresses() []string { 66 if m != nil { 67 return m.Addresses 68 } 69 return nil 70 } 71 72 // Consortium represents the consortium context in which the channel was created 73 type Consortium struct { 74 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 75 } 76 77 func (m *Consortium) Reset() { *m = Consortium{} } 78 func (m *Consortium) String() string { return proto.CompactTextString(m) } 79 func (*Consortium) ProtoMessage() {} 80 func (*Consortium) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} } 81 82 func (m *Consortium) GetName() string { 83 if m != nil { 84 return m.Name 85 } 86 return "" 87 } 88 89 func init() { 90 proto.RegisterType((*HashingAlgorithm)(nil), "common.HashingAlgorithm") 91 proto.RegisterType((*BlockDataHashingStructure)(nil), "common.BlockDataHashingStructure") 92 proto.RegisterType((*OrdererAddresses)(nil), "common.OrdererAddresses") 93 proto.RegisterType((*Consortium)(nil), "common.Consortium") 94 } 95 96 func init() { proto.RegisterFile("common/configuration.proto", fileDescriptor2) } 97 98 var fileDescriptor2 = []byte{ 99 // 230 bytes of a gzipped FileDescriptorProto 100 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x8f, 0xc1, 0x4a, 0x03, 0x31, 101 0x10, 0x86, 0x59, 0xd4, 0xc2, 0x0e, 0x08, 0x25, 0x78, 0xa8, 0xe2, 0x61, 0x59, 0x44, 0x0a, 0xc2, 102 0x46, 0xf1, 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0x19, 0x1f, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0xb6, 0x15, 114 0xb9, 0xb4, 0x30, 0x01, 0x00, 0x00, 115 }