github.com/adnan-c/fabric_e2e_couchdb@v0.6.1-preview.0.20170228180935-21ce6b23cf91/protos/msp/mspconfig.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: msp/mspconfig.proto 3 // DO NOT EDIT! 4 5 /* 6 Package msp is a generated protocol buffer package. 7 8 It is generated from these files: 9 msp/mspconfig.proto 10 11 It has these top-level messages: 12 MSPConfig 13 FabricMSPConfig 14 SigningIdentityInfo 15 KeyInfo 16 FabricOUIdentifier 17 */ 18 package msp 19 20 import proto "github.com/golang/protobuf/proto" 21 import fmt "fmt" 22 import math "math" 23 24 // Reference imports to suppress errors if they are not otherwise used. 25 var _ = proto.Marshal 26 var _ = fmt.Errorf 27 var _ = math.Inf 28 29 // This is a compile-time assertion to ensure that this generated file 30 // is compatible with the proto package it is being compiled against. 31 // A compilation error at this line likely means your copy of the 32 // proto package needs to be updated. 33 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 34 35 // MSPConfig collects all the configuration information for 36 // an MSP. The Config field should be unmarshalled in a way 37 // that depends on the Type 38 type MSPConfig struct { 39 // Type holds the type of the MSP; the default one would 40 // be of type FABRIC implementing an X.509 based provider 41 Type int32 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"` 42 // Config is MSP dependent configuration info 43 Config []byte `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` 44 } 45 46 func (m *MSPConfig) Reset() { *m = MSPConfig{} } 47 func (m *MSPConfig) String() string { return proto.CompactTextString(m) } 48 func (*MSPConfig) ProtoMessage() {} 49 func (*MSPConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } 50 51 // FabricMSPConfig collects all the configuration information for 52 // a Fabric MSP. 53 // Here we assume a default certificate validation policy, where 54 // any certificate signed by any of the listed rootCA certs would 55 // be considered as valid under this MSP. 56 // This MSP may or may not come with a signing identity. If it does, 57 // it can also issue signing identities. If it does not, it can only 58 // be used to validate and verify certificates. 59 type FabricMSPConfig struct { 60 // Name holds the identifier of the MSP; MSP identifier 61 // is chosen by the application that governs this MSP. 62 // For example, and assuming the default implementation of MSP, 63 // that is X.509-based and considers a single Issuer, 64 // this can refer to the Subject OU field or the Issuer OU field. 65 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 66 // List of root certificates trusted by this MSP 67 // they are used upon certificate validation (see 68 // comment for IntermediateCerts below) 69 RootCerts [][]byte `protobuf:"bytes,2,rep,name=root_certs,json=rootCerts,proto3" json:"root_certs,omitempty"` 70 // List of intermediate certificates trusted by this MSP; 71 // they are used upon certificate validation as follows: 72 // validation attempts to build a path from the certificate 73 // to be validated (which is at one end of the path) and 74 // one of the certs in the RootCerts field (which is at 75 // the other end of the path). If the path is longer than 76 // 2, certificates in the middle are searched within the 77 // IntermediateCerts pool 78 IntermediateCerts [][]byte `protobuf:"bytes,3,rep,name=intermediate_certs,json=intermediateCerts,proto3" json:"intermediate_certs,omitempty"` 79 // Identity denoting the administrator of this MSP 80 Admins [][]byte `protobuf:"bytes,4,rep,name=admins,proto3" json:"admins,omitempty"` 81 // Identity revocation list 82 RevocationList [][]byte `protobuf:"bytes,5,rep,name=revocation_list,json=revocationList,proto3" json:"revocation_list,omitempty"` 83 // SigningIdentity holds information on the signing identity 84 // this peer is to use, and which is to be imported by the 85 // MSP defined before 86 SigningIdentity *SigningIdentityInfo `protobuf:"bytes,6,opt,name=signing_identity,json=signingIdentity" json:"signing_identity,omitempty"` 87 // OrganizationalUnitIdentifiers holds one or more 88 // fabric organizational unit identifiers that belong to 89 // this MSP configuration 90 OrganizationalUnitIdentifiers []*FabricOUIdentifier `protobuf:"bytes,7,rep,name=organizational_unit_identifiers,json=organizationalUnitIdentifiers" json:"organizational_unit_identifiers,omitempty"` 91 } 92 93 func (m *FabricMSPConfig) Reset() { *m = FabricMSPConfig{} } 94 func (m *FabricMSPConfig) String() string { return proto.CompactTextString(m) } 95 func (*FabricMSPConfig) ProtoMessage() {} 96 func (*FabricMSPConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } 97 98 func (m *FabricMSPConfig) GetSigningIdentity() *SigningIdentityInfo { 99 if m != nil { 100 return m.SigningIdentity 101 } 102 return nil 103 } 104 105 func (m *FabricMSPConfig) GetOrganizationalUnitIdentifiers() []*FabricOUIdentifier { 106 if m != nil { 107 return m.OrganizationalUnitIdentifiers 108 } 109 return nil 110 } 111 112 // SigningIdentityInfo represents the configuration information 113 // related to the signing identity the peer is to use for generating 114 // endorsements 115 type SigningIdentityInfo struct { 116 // PublicSigner carries the public information of the signing 117 // identity. For an X.509 provider this would be represented by 118 // an X.509 certificate 119 PublicSigner []byte `protobuf:"bytes,1,opt,name=public_signer,json=publicSigner,proto3" json:"public_signer,omitempty"` 120 // PrivateSigner denotes a reference to the private key of the 121 // peer's signing identity 122 PrivateSigner *KeyInfo `protobuf:"bytes,2,opt,name=private_signer,json=privateSigner" json:"private_signer,omitempty"` 123 } 124 125 func (m *SigningIdentityInfo) Reset() { *m = SigningIdentityInfo{} } 126 func (m *SigningIdentityInfo) String() string { return proto.CompactTextString(m) } 127 func (*SigningIdentityInfo) ProtoMessage() {} 128 func (*SigningIdentityInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } 129 130 func (m *SigningIdentityInfo) GetPrivateSigner() *KeyInfo { 131 if m != nil { 132 return m.PrivateSigner 133 } 134 return nil 135 } 136 137 // KeyInfo represents a (secret) key that is either already stored 138 // in the bccsp/keystore or key material to be imported to the 139 // bccsp key-store. In later versions it may contain also a 140 // keystore identifier 141 type KeyInfo struct { 142 // Identifier of the key inside the default keystore; this for 143 // the case of Software BCCSP as well as the HSM BCCSP would be 144 // the SKI of the key 145 KeyIdentifier string `protobuf:"bytes,1,opt,name=key_identifier,json=keyIdentifier" json:"key_identifier,omitempty"` 146 // KeyMaterial (optional) for the key to be imported; this is 147 // properly encoded key bytes, prefixed by the type of the key 148 KeyMaterial []byte `protobuf:"bytes,2,opt,name=key_material,json=keyMaterial,proto3" json:"key_material,omitempty"` 149 } 150 151 func (m *KeyInfo) Reset() { *m = KeyInfo{} } 152 func (m *KeyInfo) String() string { return proto.CompactTextString(m) } 153 func (*KeyInfo) ProtoMessage() {} 154 func (*KeyInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } 155 156 // FabricOUIdentifier represents an organizazional unit and 157 // its related chain of trust identifier. 158 type FabricOUIdentifier struct { 159 // CertifiersIdentifier is the hash of certificates chain of trust 160 // related to this organizational unit 161 CertifiersIdentifier []byte `protobuf:"bytes,1,opt,name=certifiers_identifier,json=certifiersIdentifier,proto3" json:"certifiers_identifier,omitempty"` 162 // OrganizationUnitIdentifier defines the organizational unit under the 163 // MSP identified with MSPIdentifier 164 OrganizationalUnitIdentifier string `protobuf:"bytes,2,opt,name=organizational_unit_identifier,json=organizationalUnitIdentifier" json:"organizational_unit_identifier,omitempty"` 165 } 166 167 func (m *FabricOUIdentifier) Reset() { *m = FabricOUIdentifier{} } 168 func (m *FabricOUIdentifier) String() string { return proto.CompactTextString(m) } 169 func (*FabricOUIdentifier) ProtoMessage() {} 170 func (*FabricOUIdentifier) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } 171 172 func init() { 173 proto.RegisterType((*MSPConfig)(nil), "msp.MSPConfig") 174 proto.RegisterType((*FabricMSPConfig)(nil), "msp.FabricMSPConfig") 175 proto.RegisterType((*SigningIdentityInfo)(nil), "msp.SigningIdentityInfo") 176 proto.RegisterType((*KeyInfo)(nil), "msp.KeyInfo") 177 proto.RegisterType((*FabricOUIdentifier)(nil), "msp.FabricOUIdentifier") 178 } 179 180 func init() { proto.RegisterFile("msp/mspconfig.proto", fileDescriptor0) } 181 182 var fileDescriptor0 = []byte{ 183 // 458 bytes of a gzipped FileDescriptorProto 184 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x53, 0xdd, 0x6e, 0xd3, 0x30, 185 0x14, 0x56, 0xda, 0xad, 0x53, 0x4f, 0xd3, 0x16, 0x3c, 0x18, 0xb9, 0x60, 0x10, 0x82, 0x10, 0x11, 186 0x12, 0xad, 0xb4, 0x5e, 0x70, 0x4f, 0x11, 0x52, 0x05, 0x13, 0x28, 0xd5, 0x6e, 0xb8, 0x89, 0xd2, 187 0xd4, 0xcd, 0x8e, 0x1a, 0xff, 0xc8, 0x76, 0x27, 0x85, 0x97, 0xe0, 0xfd, 0x78, 0x1a, 0x14, 0xdb, 188 0xa2, 0x2d, 0x4c, 0xbb, 0x3b, 0xfe, 0x7e, 0x4e, 0xbe, 0x73, 0x1c, 0xc3, 0x39, 0xd3, 0x72, 0xca, 189 0xb4, 0x2c, 0x05, 0xdf, 0x60, 0x35, 0x91, 0x4a, 0x18, 0x41, 0xba, 0x4c, 0xcb, 0xe4, 0x03, 0xf4, 190 0xaf, 0x97, 0xdf, 0xe7, 0x16, 0x27, 0x04, 0x4e, 0x4c, 0x23, 0x69, 0x14, 0xc4, 0x41, 0x7a, 0x9a, 191 0xd9, 0x9a, 0x5c, 0x40, 0xcf, 0xb9, 0xa2, 0x4e, 0x1c, 0xa4, 0x61, 0xe6, 0x4f, 0xc9, 0xef, 0x0e, 192 0x8c, 0x3f, 0x17, 0x2b, 0x85, 0xe5, 0x91, 0x9f, 0x17, 0xcc, 0xf9, 0xfb, 0x99, 0xad, 0xc9, 0x25, 193 0x80, 0x12, 0xc2, 0xe4, 0x25, 0x55, 0x46, 0x47, 0x9d, 0xb8, 0x9b, 0x86, 0x59, 0xbf, 0x45, 0xe6, 194 0x2d, 0x40, 0xde, 0x03, 0x41, 0x6e, 0xa8, 0x62, 0x74, 0x8d, 0x85, 0xa1, 0x5e, 0xd6, 0xb5, 0xb2, 195 0xc7, 0x87, 0x8c, 0x93, 0x5f, 0x40, 0xaf, 0x58, 0x33, 0xe4, 0x3a, 0x3a, 0xb1, 0x12, 0x7f, 0x22, 196 0x6f, 0x61, 0xac, 0xe8, 0x9d, 0x28, 0x0b, 0x83, 0x82, 0xe7, 0x35, 0x6a, 0x13, 0x9d, 0x5a, 0xc1,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