Documentation ¶
Index ¶
- Variables
- type CombinedPrincipal
- func (*CombinedPrincipal) Descriptor() ([]byte, []int)
- func (m *CombinedPrincipal) GetPrincipals() []*MSPPrincipal
- func (*CombinedPrincipal) ProtoMessage()
- func (m *CombinedPrincipal) Reset()
- func (m *CombinedPrincipal) String() string
- func (m *CombinedPrincipal) XXX_DiscardUnknown()
- func (m *CombinedPrincipal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CombinedPrincipal) XXX_Merge(src proto.Message)
- func (m *CombinedPrincipal) XXX_Size() int
- func (m *CombinedPrincipal) XXX_Unmarshal(b []byte) error
- type FabricCryptoConfig
- func (*FabricCryptoConfig) Descriptor() ([]byte, []int)
- func (m *FabricCryptoConfig) GetIdentityIdentifierHashFunction() string
- func (m *FabricCryptoConfig) GetSignatureHashFamily() string
- func (*FabricCryptoConfig) ProtoMessage()
- func (m *FabricCryptoConfig) Reset()
- func (m *FabricCryptoConfig) String() string
- func (m *FabricCryptoConfig) XXX_DiscardUnknown()
- func (m *FabricCryptoConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FabricCryptoConfig) XXX_Merge(src proto.Message)
- func (m *FabricCryptoConfig) XXX_Size() int
- func (m *FabricCryptoConfig) XXX_Unmarshal(b []byte) error
- type FabricMSPConfig
- func (*FabricMSPConfig) Descriptor() ([]byte, []int)
- func (m *FabricMSPConfig) GetAdmins() [][]byte
- func (m *FabricMSPConfig) GetCryptoConfig() *FabricCryptoConfig
- func (m *FabricMSPConfig) GetFabricNodeOus() *FabricNodeOUs
- func (m *FabricMSPConfig) GetIntermediateCerts() [][]byte
- func (m *FabricMSPConfig) GetName() string
- func (m *FabricMSPConfig) GetOrganizationalUnitIdentifiers() []*FabricOUIdentifier
- func (m *FabricMSPConfig) GetRevocationList() [][]byte
- func (m *FabricMSPConfig) GetRootCerts() [][]byte
- func (m *FabricMSPConfig) GetSigningIdentity() *SigningIdentityInfo
- func (m *FabricMSPConfig) GetTlsIntermediateCerts() [][]byte
- func (m *FabricMSPConfig) GetTlsRootCerts() [][]byte
- func (*FabricMSPConfig) ProtoMessage()
- func (m *FabricMSPConfig) Reset()
- func (m *FabricMSPConfig) String() string
- func (m *FabricMSPConfig) XXX_DiscardUnknown()
- func (m *FabricMSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FabricMSPConfig) XXX_Merge(src proto.Message)
- func (m *FabricMSPConfig) XXX_Size() int
- func (m *FabricMSPConfig) XXX_Unmarshal(b []byte) error
- type FabricNodeOUs
- func (*FabricNodeOUs) Descriptor() ([]byte, []int)
- func (m *FabricNodeOUs) GetClientOuIdentifier() *FabricOUIdentifier
- func (m *FabricNodeOUs) GetEnable() bool
- func (m *FabricNodeOUs) GetPeerOuIdentifier() *FabricOUIdentifier
- func (*FabricNodeOUs) ProtoMessage()
- func (m *FabricNodeOUs) Reset()
- func (m *FabricNodeOUs) String() string
- func (m *FabricNodeOUs) XXX_DiscardUnknown()
- func (m *FabricNodeOUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FabricNodeOUs) XXX_Merge(src proto.Message)
- func (m *FabricNodeOUs) XXX_Size() int
- func (m *FabricNodeOUs) XXX_Unmarshal(b []byte) error
- type FabricOUIdentifier
- func (*FabricOUIdentifier) Descriptor() ([]byte, []int)
- func (m *FabricOUIdentifier) GetCertificate() []byte
- func (m *FabricOUIdentifier) GetOrganizationalUnitIdentifier() string
- func (*FabricOUIdentifier) ProtoMessage()
- func (m *FabricOUIdentifier) Reset()
- func (m *FabricOUIdentifier) String() string
- func (m *FabricOUIdentifier) XXX_DiscardUnknown()
- func (m *FabricOUIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FabricOUIdentifier) XXX_Merge(src proto.Message)
- func (m *FabricOUIdentifier) XXX_Size() int
- func (m *FabricOUIdentifier) XXX_Unmarshal(b []byte) error
- type IdemixMSPConfig
- func (*IdemixMSPConfig) Descriptor() ([]byte, []int)
- func (m *IdemixMSPConfig) GetEpoch() int64
- func (m *IdemixMSPConfig) GetIpk() []byte
- func (m *IdemixMSPConfig) GetName() string
- func (m *IdemixMSPConfig) GetRevocationPk() []byte
- func (m *IdemixMSPConfig) GetSigner() *IdemixMSPSignerConfig
- func (*IdemixMSPConfig) ProtoMessage()
- func (m *IdemixMSPConfig) Reset()
- func (m *IdemixMSPConfig) String() string
- func (m *IdemixMSPConfig) XXX_DiscardUnknown()
- func (m *IdemixMSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *IdemixMSPConfig) XXX_Merge(src proto.Message)
- func (m *IdemixMSPConfig) XXX_Size() int
- func (m *IdemixMSPConfig) XXX_Unmarshal(b []byte) error
- type IdemixMSPSignerConfig
- func (*IdemixMSPSignerConfig) Descriptor() ([]byte, []int)
- func (m *IdemixMSPSignerConfig) GetCred() []byte
- func (m *IdemixMSPSignerConfig) GetCredentialRevocationInformation() []byte
- func (m *IdemixMSPSignerConfig) GetEnrollmentId() string
- func (m *IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier() string
- func (m *IdemixMSPSignerConfig) GetRole() int32
- func (m *IdemixMSPSignerConfig) GetSk() []byte
- func (*IdemixMSPSignerConfig) ProtoMessage()
- func (m *IdemixMSPSignerConfig) Reset()
- func (m *IdemixMSPSignerConfig) String() string
- func (m *IdemixMSPSignerConfig) XXX_DiscardUnknown()
- func (m *IdemixMSPSignerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *IdemixMSPSignerConfig) XXX_Merge(src proto.Message)
- func (m *IdemixMSPSignerConfig) XXX_Size() int
- func (m *IdemixMSPSignerConfig) XXX_Unmarshal(b []byte) error
- type KeyInfo
- func (*KeyInfo) Descriptor() ([]byte, []int)
- func (m *KeyInfo) GetKeyIdentifier() string
- func (m *KeyInfo) GetKeyMaterial() []byte
- func (*KeyInfo) ProtoMessage()
- func (m *KeyInfo) Reset()
- func (m *KeyInfo) String() string
- func (m *KeyInfo) XXX_DiscardUnknown()
- func (m *KeyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *KeyInfo) XXX_Merge(src proto.Message)
- func (m *KeyInfo) XXX_Size() int
- func (m *KeyInfo) XXX_Unmarshal(b []byte) error
- type MSPConfig
- func (*MSPConfig) Descriptor() ([]byte, []int)
- func (m *MSPConfig) GetConfig() []byte
- func (m *MSPConfig) GetType() int32
- func (*MSPConfig) ProtoMessage()
- func (m *MSPConfig) Reset()
- func (m *MSPConfig) String() string
- func (mc *MSPConfig) VariablyOpaqueFieldProto(name string) (proto.Message, error)
- func (mc *MSPConfig) VariablyOpaqueFields() []string
- func (m *MSPConfig) XXX_DiscardUnknown()
- func (m *MSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MSPConfig) XXX_Merge(src proto.Message)
- func (m *MSPConfig) XXX_Size() int
- func (m *MSPConfig) XXX_Unmarshal(b []byte) error
- type MSPIdentityAnonymity
- func (*MSPIdentityAnonymity) Descriptor() ([]byte, []int)
- func (m *MSPIdentityAnonymity) GetAnonymityType() MSPIdentityAnonymity_MSPIdentityAnonymityType
- func (*MSPIdentityAnonymity) ProtoMessage()
- func (m *MSPIdentityAnonymity) Reset()
- func (m *MSPIdentityAnonymity) String() string
- func (m *MSPIdentityAnonymity) XXX_DiscardUnknown()
- func (m *MSPIdentityAnonymity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MSPIdentityAnonymity) XXX_Merge(src proto.Message)
- func (m *MSPIdentityAnonymity) XXX_Size() int
- func (m *MSPIdentityAnonymity) XXX_Unmarshal(b []byte) error
- type MSPIdentityAnonymity_MSPIdentityAnonymityType
- type MSPPrincipal
- func (*MSPPrincipal) Descriptor() ([]byte, []int)
- func (m *MSPPrincipal) GetPrincipal() []byte
- func (m *MSPPrincipal) GetPrincipalClassification() MSPPrincipal_Classification
- func (*MSPPrincipal) ProtoMessage()
- func (m *MSPPrincipal) Reset()
- func (m *MSPPrincipal) String() string
- func (mp *MSPPrincipal) VariablyOpaqueFieldProto(name string) (proto.Message, error)
- func (mp *MSPPrincipal) VariablyOpaqueFields() []string
- func (m *MSPPrincipal) XXX_DiscardUnknown()
- func (m *MSPPrincipal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MSPPrincipal) XXX_Merge(src proto.Message)
- func (m *MSPPrincipal) XXX_Size() int
- func (m *MSPPrincipal) XXX_Unmarshal(b []byte) error
- type MSPPrincipal_Classification
- type MSPRole
- func (*MSPRole) Descriptor() ([]byte, []int)
- func (m *MSPRole) GetMspIdentifier() string
- func (m *MSPRole) GetRole() MSPRole_MSPRoleType
- func (*MSPRole) ProtoMessage()
- func (m *MSPRole) Reset()
- func (m *MSPRole) String() string
- func (m *MSPRole) XXX_DiscardUnknown()
- func (m *MSPRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MSPRole) XXX_Merge(src proto.Message)
- func (m *MSPRole) XXX_Size() int
- func (m *MSPRole) XXX_Unmarshal(b []byte) error
- type MSPRole_MSPRoleType
- type OrganizationUnit
- func (*OrganizationUnit) Descriptor() ([]byte, []int)
- func (m *OrganizationUnit) GetCertifiersIdentifier() []byte
- func (m *OrganizationUnit) GetMspIdentifier() string
- func (m *OrganizationUnit) GetOrganizationalUnitIdentifier() string
- func (*OrganizationUnit) ProtoMessage()
- func (m *OrganizationUnit) Reset()
- func (m *OrganizationUnit) String() string
- func (m *OrganizationUnit) XXX_DiscardUnknown()
- func (m *OrganizationUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *OrganizationUnit) XXX_Merge(src proto.Message)
- func (m *OrganizationUnit) XXX_Size() int
- func (m *OrganizationUnit) XXX_Unmarshal(b []byte) error
- type SerializedIdemixIdentity
- func (*SerializedIdemixIdentity) Descriptor() ([]byte, []int)
- func (m *SerializedIdemixIdentity) GetNymX() []byte
- func (m *SerializedIdemixIdentity) GetNymY() []byte
- func (m *SerializedIdemixIdentity) GetOu() []byte
- func (m *SerializedIdemixIdentity) GetProof() []byte
- func (m *SerializedIdemixIdentity) GetRole() []byte
- func (*SerializedIdemixIdentity) ProtoMessage()
- func (m *SerializedIdemixIdentity) Reset()
- func (m *SerializedIdemixIdentity) String() string
- func (m *SerializedIdemixIdentity) XXX_DiscardUnknown()
- func (m *SerializedIdemixIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SerializedIdemixIdentity) XXX_Merge(src proto.Message)
- func (m *SerializedIdemixIdentity) XXX_Size() int
- func (m *SerializedIdemixIdentity) XXX_Unmarshal(b []byte) error
- type SerializedIdentity
- func (*SerializedIdentity) Descriptor() ([]byte, []int)
- func (m *SerializedIdentity) GetIdBytes() []byte
- func (m *SerializedIdentity) GetMspid() string
- func (*SerializedIdentity) ProtoMessage()
- func (m *SerializedIdentity) Reset()
- func (m *SerializedIdentity) String() string
- func (m *SerializedIdentity) XXX_DiscardUnknown()
- func (m *SerializedIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SerializedIdentity) XXX_Merge(src proto.Message)
- func (m *SerializedIdentity) XXX_Size() int
- func (m *SerializedIdentity) XXX_Unmarshal(b []byte) error
- type SigningIdentityInfo
- func (*SigningIdentityInfo) Descriptor() ([]byte, []int)
- func (m *SigningIdentityInfo) GetPrivateSigner() *KeyInfo
- func (m *SigningIdentityInfo) GetPublicSigner() []byte
- func (*SigningIdentityInfo) ProtoMessage()
- func (m *SigningIdentityInfo) Reset()
- func (m *SigningIdentityInfo) String() string
- func (m *SigningIdentityInfo) XXX_DiscardUnknown()
- func (m *SigningIdentityInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SigningIdentityInfo) XXX_Merge(src proto.Message)
- func (m *SigningIdentityInfo) XXX_Size() int
- func (m *SigningIdentityInfo) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var MSPIdentityAnonymity_MSPIdentityAnonymityType_name = map[int32]string{
0: "NOMINAL",
1: "ANONYMOUS",
}
var MSPIdentityAnonymity_MSPIdentityAnonymityType_value = map[string]int32{
"NOMINAL": 0,
"ANONYMOUS": 1,
}
var MSPPrincipal_Classification_name = map[int32]string{
0: "ROLE",
1: "ORGANIZATION_UNIT",
2: "IDENTITY",
3: "ANONYMITY",
4: "COMBINED",
}
var MSPPrincipal_Classification_value = map[string]int32{
"ROLE": 0,
"ORGANIZATION_UNIT": 1,
"IDENTITY": 2,
"ANONYMITY": 3,
"COMBINED": 4,
}
var MSPRole_MSPRoleType_name = map[int32]string{
0: "MEMBER",
1: "ADMIN",
2: "CLIENT",
3: "PEER",
}
var MSPRole_MSPRoleType_value = map[string]int32{
"MEMBER": 0,
"ADMIN": 1,
"CLIENT": 2,
"PEER": 3,
}
Functions ¶
This section is empty.
Types ¶
type CombinedPrincipal ¶
type CombinedPrincipal struct { //主体是指合并主体 Principals []*MSPPrincipal `protobuf:"bytes,1,rep,name=principals,proto3" json:"principals,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
合并主体管理主体的组织 当主体类别 表示需要主体的组合形式
func (*CombinedPrincipal) Descriptor ¶
func (*CombinedPrincipal) Descriptor() ([]byte, []int)
func (*CombinedPrincipal) GetPrincipals ¶
func (m *CombinedPrincipal) GetPrincipals() []*MSPPrincipal
func (*CombinedPrincipal) ProtoMessage ¶
func (*CombinedPrincipal) ProtoMessage()
func (*CombinedPrincipal) Reset ¶
func (m *CombinedPrincipal) Reset()
func (*CombinedPrincipal) String ¶
func (m *CombinedPrincipal) String() string
func (*CombinedPrincipal) XXX_DiscardUnknown ¶
func (m *CombinedPrincipal) XXX_DiscardUnknown()
func (*CombinedPrincipal) XXX_Marshal ¶
func (m *CombinedPrincipal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CombinedPrincipal) XXX_Merge ¶
func (dst *CombinedPrincipal) XXX_Merge(src proto.Message)
func (*CombinedPrincipal) XXX_Size ¶
func (m *CombinedPrincipal) XXX_Size() int
func (*CombinedPrincipal) XXX_Unmarshal ¶
func (m *CombinedPrincipal) XXX_Unmarshal(b []byte) error
type FabricCryptoConfig ¶
type FabricCryptoConfig struct { //SignatureHashFamily是表示要使用的哈希系列的字符串 //在签名和验证操作期间。 //允许值为“sha2”和“sha3”。 SignatureHashFamily string `protobuf:"bytes,1,opt,name=signature_hash_family,json=signatureHashFamily,proto3" json:"signature_hash_family,omitempty"` //IdentityIdentifierHashFunction是表示哈希函数的字符串 //用于计算MSP标识的标识标识符。 //允许值为“sha256”、“sha384”和“sha3_256”、“sha3_384”。 IdentityIdentifierHashFunction string `` /* 155-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FabricCryptoConfig包含配置参数 对于MSP使用的加密算法 此配置引用
func (*FabricCryptoConfig) Descriptor ¶
func (*FabricCryptoConfig) Descriptor() ([]byte, []int)
func (*FabricCryptoConfig) GetIdentityIdentifierHashFunction ¶
func (m *FabricCryptoConfig) GetIdentityIdentifierHashFunction() string
func (*FabricCryptoConfig) GetSignatureHashFamily ¶
func (m *FabricCryptoConfig) GetSignatureHashFamily() string
func (*FabricCryptoConfig) ProtoMessage ¶
func (*FabricCryptoConfig) ProtoMessage()
func (*FabricCryptoConfig) Reset ¶
func (m *FabricCryptoConfig) Reset()
func (*FabricCryptoConfig) String ¶
func (m *FabricCryptoConfig) String() string
func (*FabricCryptoConfig) XXX_DiscardUnknown ¶
func (m *FabricCryptoConfig) XXX_DiscardUnknown()
func (*FabricCryptoConfig) XXX_Marshal ¶
func (m *FabricCryptoConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FabricCryptoConfig) XXX_Merge ¶
func (dst *FabricCryptoConfig) XXX_Merge(src proto.Message)
func (*FabricCryptoConfig) XXX_Size ¶
func (m *FabricCryptoConfig) XXX_Size() int
func (*FabricCryptoConfig) XXX_Unmarshal ¶
func (m *FabricCryptoConfig) XXX_Unmarshal(b []byte) error
type FabricMSPConfig ¶
type FabricMSPConfig struct { //名称保留MSP的标识符;MSP标识符 //由管理此MSP的应用程序选择。 //例如,假设MSP的默认实现, //基于X.509,考虑单个发行人, //这可以引用主题ou字段或颁发者ou字段。 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` //此MSP信任的根证书列表 //它们在证书验证时使用(请参见 //以下中间证书注释) RootCerts [][]byte `protobuf:"bytes,2,rep,name=root_certs,json=rootCerts,proto3" json:"root_certs,omitempty"` //此MSP信任的中间证书列表; //它们在证书验证时使用,如下所示: //验证尝试从证书生成路径 //待验证(位于路径一端)和 //rootcerts字段中的一个证书(位于 //路径的另一端)。如果路径长于 //2、中间的证书在 //中级证书池 IntermediateCerts [][]byte `protobuf:"bytes,3,rep,name=intermediate_certs,json=intermediateCerts,proto3" json:"intermediate_certs,omitempty"` //表示此MSP管理员的标识 Admins [][]byte `protobuf:"bytes,4,rep,name=admins,proto3" json:"admins,omitempty"` //身份吊销列表 RevocationList [][]byte `protobuf:"bytes,5,rep,name=revocation_list,json=revocationList,proto3" json:"revocation_list,omitempty"` //SigningIdentity保存有关签名标识的信息 //此对等机将被使用,并且将由 //之前定义的MSP SigningIdentity *SigningIdentityInfo `protobuf:"bytes,6,opt,name=signing_identity,json=signingIdentity,proto3" json:"signing_identity,omitempty"` //OrganizationalUnitIdentifiers包含一个或多个 //属于的结构组织单位标识符 //此MSP配置 OrganizationalUnitIdentifiers []*FabricOUIdentifier `` /* 150-byte string literal not displayed */ //FabricCryptoConfig包含配置参数 //对于此MSP使用的加密算法 CryptoConfig *FabricCryptoConfig `protobuf:"bytes,8,opt,name=crypto_config,json=cryptoConfig,proto3" json:"crypto_config,omitempty"` //此MSP信任的TLS根证书列表。 //它们由gettlsrootcerts返回。 TlsRootCerts [][]byte `protobuf:"bytes,9,rep,name=tls_root_certs,json=tlsRootCerts,proto3" json:"tls_root_certs,omitempty"` //此MSP信任的TLS中间证书列表; //它们由gettlIntermediateCenter返回。 TlsIntermediateCerts [][]byte `protobuf:"bytes,10,rep,name=tls_intermediate_certs,json=tlsIntermediateCerts,proto3" json:"tls_intermediate_certs,omitempty"` //结构节点包含用于区分客户机和对等机与订购方的配置 //基于OU。 FabricNodeOus *FabricNodeOUs `protobuf:"bytes,11,opt,name=fabric_node_ous,json=fabricNodeOus,proto3" json:"fabric_node_ous,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
fabricmspconfig收集 织物MSP。 这里我们假设一个默认的证书验证策略,其中 任何由列出的rootca证书签名的证书都将 在本MSP下视为有效。 此MSP可能附带签名标识,也可能不附带签名标识。如果确实如此, 它还可以发布签名标识。如果没有,它只能 用于验证证书。
func (*FabricMSPConfig) Descriptor ¶
func (*FabricMSPConfig) Descriptor() ([]byte, []int)
func (*FabricMSPConfig) GetAdmins ¶
func (m *FabricMSPConfig) GetAdmins() [][]byte
func (*FabricMSPConfig) GetCryptoConfig ¶
func (m *FabricMSPConfig) GetCryptoConfig() *FabricCryptoConfig
func (*FabricMSPConfig) GetFabricNodeOus ¶
func (m *FabricMSPConfig) GetFabricNodeOus() *FabricNodeOUs
func (*FabricMSPConfig) GetIntermediateCerts ¶
func (m *FabricMSPConfig) GetIntermediateCerts() [][]byte
func (*FabricMSPConfig) GetName ¶
func (m *FabricMSPConfig) GetName() string
func (*FabricMSPConfig) GetOrganizationalUnitIdentifiers ¶
func (m *FabricMSPConfig) GetOrganizationalUnitIdentifiers() []*FabricOUIdentifier
func (*FabricMSPConfig) GetRevocationList ¶
func (m *FabricMSPConfig) GetRevocationList() [][]byte
func (*FabricMSPConfig) GetRootCerts ¶
func (m *FabricMSPConfig) GetRootCerts() [][]byte
func (*FabricMSPConfig) GetSigningIdentity ¶
func (m *FabricMSPConfig) GetSigningIdentity() *SigningIdentityInfo
func (*FabricMSPConfig) GetTlsIntermediateCerts ¶
func (m *FabricMSPConfig) GetTlsIntermediateCerts() [][]byte
func (*FabricMSPConfig) GetTlsRootCerts ¶
func (m *FabricMSPConfig) GetTlsRootCerts() [][]byte
func (*FabricMSPConfig) ProtoMessage ¶
func (*FabricMSPConfig) ProtoMessage()
func (*FabricMSPConfig) Reset ¶
func (m *FabricMSPConfig) Reset()
func (*FabricMSPConfig) String ¶
func (m *FabricMSPConfig) String() string
func (*FabricMSPConfig) XXX_DiscardUnknown ¶
func (m *FabricMSPConfig) XXX_DiscardUnknown()
func (*FabricMSPConfig) XXX_Marshal ¶
func (m *FabricMSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FabricMSPConfig) XXX_Merge ¶
func (dst *FabricMSPConfig) XXX_Merge(src proto.Message)
func (*FabricMSPConfig) XXX_Size ¶
func (m *FabricMSPConfig) XXX_Size() int
func (*FabricMSPConfig) XXX_Unmarshal ¶
func (m *FabricMSPConfig) XXX_Unmarshal(b []byte) error
type FabricNodeOUs ¶
type FabricNodeOUs struct { //如果为true,则不包含任何指定OU的MSP标识将被视为无效。 Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"` //客户机的OU标识符 ClientOuIdentifier *FabricOUIdentifier `protobuf:"bytes,2,opt,name=client_ou_identifier,json=clientOuIdentifier,proto3" json:"client_ou_identifier,omitempty"` //对等方的OU标识符 PeerOuIdentifier *FabricOUIdentifier `protobuf:"bytes,3,opt,name=peer_ou_identifier,json=peerOuIdentifier,proto3" json:"peer_ou_identifier,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FabricNodeous包含用于区分客户机和对等机与订购方的配置 基于U.如果启用了节点识别,则MSP标识 不包含任何指定OU的将被视为无效。
func (*FabricNodeOUs) Descriptor ¶
func (*FabricNodeOUs) Descriptor() ([]byte, []int)
func (*FabricNodeOUs) GetClientOuIdentifier ¶
func (m *FabricNodeOUs) GetClientOuIdentifier() *FabricOUIdentifier
func (*FabricNodeOUs) GetEnable ¶
func (m *FabricNodeOUs) GetEnable() bool
func (*FabricNodeOUs) GetPeerOuIdentifier ¶
func (m *FabricNodeOUs) GetPeerOuIdentifier() *FabricOUIdentifier
func (*FabricNodeOUs) ProtoMessage ¶
func (*FabricNodeOUs) ProtoMessage()
func (*FabricNodeOUs) Reset ¶
func (m *FabricNodeOUs) Reset()
func (*FabricNodeOUs) String ¶
func (m *FabricNodeOUs) String() string
func (*FabricNodeOUs) XXX_DiscardUnknown ¶
func (m *FabricNodeOUs) XXX_DiscardUnknown()
func (*FabricNodeOUs) XXX_Marshal ¶
func (m *FabricNodeOUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FabricNodeOUs) XXX_Merge ¶
func (dst *FabricNodeOUs) XXX_Merge(src proto.Message)
func (*FabricNodeOUs) XXX_Size ¶
func (m *FabricNodeOUs) XXX_Size() int
func (*FabricNodeOUs) XXX_Unmarshal ¶
func (m *FabricNodeOUs) XXX_Unmarshal(b []byte) error
type FabricOUIdentifier ¶
type FabricOUIdentifier struct { //证书表示证书链中的第二个证书。 //(注意,证书链中的第一个证书应该是 //作为身份证明)。 //必须与根或中间CA的证书相对应 //由该邮件所属的MSP识别。 //从该证书开始,计算证书链 //并绑定到指定的OrganizationUnitIdentifier Certificate []byte `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` //OrganizationUnitIdentifier定义 //用MSPIdentifier标识的MSP OrganizationalUnitIdentifier string `` /* 147-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FabricouIdentifier表示组织单位和 它的相关信任链标识符。
func (*FabricOUIdentifier) Descriptor ¶
func (*FabricOUIdentifier) Descriptor() ([]byte, []int)
func (*FabricOUIdentifier) GetCertificate ¶
func (m *FabricOUIdentifier) GetCertificate() []byte
func (*FabricOUIdentifier) GetOrganizationalUnitIdentifier ¶
func (m *FabricOUIdentifier) GetOrganizationalUnitIdentifier() string
func (*FabricOUIdentifier) ProtoMessage ¶
func (*FabricOUIdentifier) ProtoMessage()
func (*FabricOUIdentifier) Reset ¶
func (m *FabricOUIdentifier) Reset()
func (*FabricOUIdentifier) String ¶
func (m *FabricOUIdentifier) String() string
func (*FabricOUIdentifier) XXX_DiscardUnknown ¶
func (m *FabricOUIdentifier) XXX_DiscardUnknown()
func (*FabricOUIdentifier) XXX_Marshal ¶
func (m *FabricOUIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FabricOUIdentifier) XXX_Merge ¶
func (dst *FabricOUIdentifier) XXX_Merge(src proto.Message)
func (*FabricOUIdentifier) XXX_Size ¶
func (m *FabricOUIdentifier) XXX_Size() int
func (*FabricOUIdentifier) XXX_Unmarshal ¶
func (m *FabricOUIdentifier) XXX_Unmarshal(b []byte) error
type IdemixMSPConfig ¶
type IdemixMSPConfig struct { //名称保存MSP的标识符 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` //IPK表示(序列化)颁发者公钥 Ipk []byte `protobuf:"bytes,2,opt,name=ipk,proto3" json:"ipk,omitempty"` //签名者可以包含加密材料来配置默认签名者 Signer *IdemixMSPSignerConfig `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"` //吊销\u pk是用于吊销凭据的公钥 RevocationPk []byte `protobuf:"bytes,4,opt,name=revocation_pk,json=revocationPk,proto3" json:"revocation_pk,omitempty"` //epoch表示用于撤销的当前epoch(时间间隔) Epoch int64 `protobuf:"varint,5,opt,name=epoch,proto3" json:"epoch,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
idemixmspconfig收集 一个IDEMIX MSP。
func (*IdemixMSPConfig) Descriptor ¶
func (*IdemixMSPConfig) Descriptor() ([]byte, []int)
func (*IdemixMSPConfig) GetEpoch ¶
func (m *IdemixMSPConfig) GetEpoch() int64
func (*IdemixMSPConfig) GetIpk ¶
func (m *IdemixMSPConfig) GetIpk() []byte
func (*IdemixMSPConfig) GetName ¶
func (m *IdemixMSPConfig) GetName() string
func (*IdemixMSPConfig) GetRevocationPk ¶
func (m *IdemixMSPConfig) GetRevocationPk() []byte
func (*IdemixMSPConfig) GetSigner ¶
func (m *IdemixMSPConfig) GetSigner() *IdemixMSPSignerConfig
func (*IdemixMSPConfig) ProtoMessage ¶
func (*IdemixMSPConfig) ProtoMessage()
func (*IdemixMSPConfig) Reset ¶
func (m *IdemixMSPConfig) Reset()
func (*IdemixMSPConfig) String ¶
func (m *IdemixMSPConfig) String() string
func (*IdemixMSPConfig) XXX_DiscardUnknown ¶
func (m *IdemixMSPConfig) XXX_DiscardUnknown()
func (*IdemixMSPConfig) XXX_Marshal ¶
func (m *IdemixMSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IdemixMSPConfig) XXX_Merge ¶
func (dst *IdemixMSPConfig) XXX_Merge(src proto.Message)
func (*IdemixMSPConfig) XXX_Size ¶
func (m *IdemixMSPConfig) XXX_Size() int
func (*IdemixMSPConfig) XXX_Unmarshal ¶
func (m *IdemixMSPConfig) XXX_Unmarshal(b []byte) error
type IdemixMSPSignerConfig ¶
type IdemixMSPSignerConfig struct { //cred表示默认签名者的序列化IDemix凭据 Cred []byte `protobuf:"bytes,1,opt,name=cred,proto3" json:"cred,omitempty"` //sk是默认签名者的密钥,对应于凭证凭证凭证 Sk []byte `protobuf:"bytes,2,opt,name=sk,proto3" json:"sk,omitempty"` //组织单元标识符定义默认签名者所在的组织单元 OrganizationalUnitIdentifier string `` /* 147-byte string literal not displayed */ //角色定义默认签名者是管理员、对等方、成员还是客户端 Role int32 `protobuf:"varint,4,opt,name=role,proto3" json:"role,omitempty"` //注册ID包含此签名者的注册ID EnrollmentId string `protobuf:"bytes,5,opt,name=enrollment_id,json=enrollmentId,proto3" json:"enrollment_id,omitempty"` //凭证吊销信息包含一个系列化的凭证吊销信息 CredentialRevocationInformation []byte `` /* 156-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
idemixmspsignerconfig包含用于设置idemix签名标识的加密材料
func (*IdemixMSPSignerConfig) Descriptor ¶
func (*IdemixMSPSignerConfig) Descriptor() ([]byte, []int)
func (*IdemixMSPSignerConfig) GetCred ¶
func (m *IdemixMSPSignerConfig) GetCred() []byte
func (*IdemixMSPSignerConfig) GetCredentialRevocationInformation ¶
func (m *IdemixMSPSignerConfig) GetCredentialRevocationInformation() []byte
func (*IdemixMSPSignerConfig) GetEnrollmentId ¶
func (m *IdemixMSPSignerConfig) GetEnrollmentId() string
func (*IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier ¶
func (m *IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier() string
func (*IdemixMSPSignerConfig) GetRole ¶
func (m *IdemixMSPSignerConfig) GetRole() int32
func (*IdemixMSPSignerConfig) GetSk ¶
func (m *IdemixMSPSignerConfig) GetSk() []byte
func (*IdemixMSPSignerConfig) ProtoMessage ¶
func (*IdemixMSPSignerConfig) ProtoMessage()
func (*IdemixMSPSignerConfig) Reset ¶
func (m *IdemixMSPSignerConfig) Reset()
func (*IdemixMSPSignerConfig) String ¶
func (m *IdemixMSPSignerConfig) String() string
func (*IdemixMSPSignerConfig) XXX_DiscardUnknown ¶
func (m *IdemixMSPSignerConfig) XXX_DiscardUnknown()
func (*IdemixMSPSignerConfig) XXX_Marshal ¶
func (m *IdemixMSPSignerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IdemixMSPSignerConfig) XXX_Merge ¶
func (dst *IdemixMSPSignerConfig) XXX_Merge(src proto.Message)
func (*IdemixMSPSignerConfig) XXX_Size ¶
func (m *IdemixMSPSignerConfig) XXX_Size() int
func (*IdemixMSPSignerConfig) XXX_Unmarshal ¶
func (m *IdemixMSPSignerConfig) XXX_Unmarshal(b []byte) error
type KeyInfo ¶
type KeyInfo struct { //默认密钥库中密钥的标识符;用于 //软件BCCSP和HSM BCCSP的情况是 //滑雪键 KeyIdentifier string `protobuf:"bytes,1,opt,name=key_identifier,json=keyIdentifier,proto3" json:"key_identifier,omitempty"` //要导入的密钥的密钥材料(可选);这是 //正确编码的密钥字节,前缀为密钥类型 KeyMaterial []byte `protobuf:"bytes,2,opt,name=key_material,json=keyMaterial,proto3" json:"key_material,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
keyinfo表示已经存储的(秘密)密钥 在要导入到 BCCSP密钥存储。在以后的版本中,它还可能包含 密钥库标识符
func (*KeyInfo) Descriptor ¶
func (*KeyInfo) GetKeyIdentifier ¶
func (*KeyInfo) GetKeyMaterial ¶
func (*KeyInfo) ProtoMessage ¶
func (*KeyInfo) ProtoMessage()
func (*KeyInfo) XXX_DiscardUnknown ¶
func (m *KeyInfo) XXX_DiscardUnknown()
func (*KeyInfo) XXX_Marshal ¶
func (*KeyInfo) XXX_Unmarshal ¶
type MSPConfig ¶
type MSPConfig struct { //类型保存MSP的类型;默认类型将 //属于实现基于X.509的提供程序的结构类型 Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` //配置是与MSP相关的配置信息 Config []byte `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
mspconfig收集的所有配置信息 一个MSP。配置字段应以某种方式取消编排 那取决于类型
func (*MSPConfig) Descriptor ¶
func (*MSPConfig) ProtoMessage ¶
func (*MSPConfig) ProtoMessage()
func (*MSPConfig) VariablyOpaqueFieldProto ¶
func (*MSPConfig) VariablyOpaqueFields ¶
func (*MSPConfig) XXX_DiscardUnknown ¶
func (m *MSPConfig) XXX_DiscardUnknown()
func (*MSPConfig) XXX_Marshal ¶
func (*MSPConfig) XXX_Unmarshal ¶
type MSPIdentityAnonymity ¶
type MSPIdentityAnonymity struct { AnonymityType MSPIdentityAnonymity_MSPIdentityAnonymityType `` /* 159-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
mspidentityAnonymity可用于强制标识为匿名或名义。
func (*MSPIdentityAnonymity) Descriptor ¶
func (*MSPIdentityAnonymity) Descriptor() ([]byte, []int)
func (*MSPIdentityAnonymity) GetAnonymityType ¶
func (m *MSPIdentityAnonymity) GetAnonymityType() MSPIdentityAnonymity_MSPIdentityAnonymityType
func (*MSPIdentityAnonymity) ProtoMessage ¶
func (*MSPIdentityAnonymity) ProtoMessage()
func (*MSPIdentityAnonymity) Reset ¶
func (m *MSPIdentityAnonymity) Reset()
func (*MSPIdentityAnonymity) String ¶
func (m *MSPIdentityAnonymity) String() string
func (*MSPIdentityAnonymity) XXX_DiscardUnknown ¶
func (m *MSPIdentityAnonymity) XXX_DiscardUnknown()
func (*MSPIdentityAnonymity) XXX_Marshal ¶
func (m *MSPIdentityAnonymity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MSPIdentityAnonymity) XXX_Merge ¶
func (dst *MSPIdentityAnonymity) XXX_Merge(src proto.Message)
func (*MSPIdentityAnonymity) XXX_Size ¶
func (m *MSPIdentityAnonymity) XXX_Size() int
func (*MSPIdentityAnonymity) XXX_Unmarshal ¶
func (m *MSPIdentityAnonymity) XXX_Unmarshal(b []byte) error
type MSPIdentityAnonymity_MSPIdentityAnonymityType ¶
type MSPIdentityAnonymity_MSPIdentityAnonymityType int32
const ( MSPIdentityAnonymity_NOMINAL MSPIdentityAnonymity_MSPIdentityAnonymityType = 0 MSPIdentityAnonymity_ANONYMOUS MSPIdentityAnonymity_MSPIdentityAnonymityType = 1 )
func (MSPIdentityAnonymity_MSPIdentityAnonymityType) EnumDescriptor ¶
func (MSPIdentityAnonymity_MSPIdentityAnonymityType) EnumDescriptor() ([]byte, []int)
func (MSPIdentityAnonymity_MSPIdentityAnonymityType) String ¶
func (x MSPIdentityAnonymity_MSPIdentityAnonymityType) String() string
type MSPPrincipal ¶
type MSPPrincipal struct { //分类描述了一个人应该如何处理 //校长。“ByOrganizationUnit”的分类值反映 //“主体”包含此MSP的组织的名称 //把手。分类值“ByIdentity”是指 //“主体”包含特定的标识。默认值 //表示主体包含一个分组依据 //所有msp(“admin”或“member”)支持的默认值。 PrincipalClassification MSPPrincipal_Classification `` /* 171-byte string literal not displayed */ //主体完成策略主体定义。对于违约 //主体类型,主体可以是“admin”或“member”。 //对于分类的ByOrganizationUnit/ByIdentity值, //policyPrincipal从组织单位或 //分别是身份。 //对于组合的分类类型,主体是 //合并主体。 Principal []byte `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
mspprincipal旨在表示一组以msp为中心的标识。 特别是,此结构允许定义 -属于同一MSP的一组标识 -属于同一组织单位的一组标识 在同一个MSP中 -管理特定MSP的一组标识 -特定身份 在下面两个字段中表示这些组 -分类,定义身份分类的类型 在MSP中,此主体将在上定义;分类可以采用 三个价值: (i)bymsprole:表示 基于两个预先定义的MSP规则之一的MSP,“成员”和“管理” (ii)按组织单位:表示身份分类 在基于组织单位的MSP中,标识属于 (iii)表示mspprincipal映射到单个 标识/证书;这意味着主体字节 消息
func (*MSPPrincipal) Descriptor ¶
func (*MSPPrincipal) Descriptor() ([]byte, []int)
func (*MSPPrincipal) GetPrincipal ¶
func (m *MSPPrincipal) GetPrincipal() []byte
func (*MSPPrincipal) GetPrincipalClassification ¶
func (m *MSPPrincipal) GetPrincipalClassification() MSPPrincipal_Classification
func (*MSPPrincipal) ProtoMessage ¶
func (*MSPPrincipal) ProtoMessage()
func (*MSPPrincipal) Reset ¶
func (m *MSPPrincipal) Reset()
func (*MSPPrincipal) String ¶
func (m *MSPPrincipal) String() string
func (*MSPPrincipal) VariablyOpaqueFieldProto ¶
func (mp *MSPPrincipal) VariablyOpaqueFieldProto(name string) (proto.Message, error)
func (*MSPPrincipal) VariablyOpaqueFields ¶
func (mp *MSPPrincipal) VariablyOpaqueFields() []string
func (*MSPPrincipal) XXX_DiscardUnknown ¶
func (m *MSPPrincipal) XXX_DiscardUnknown()
func (*MSPPrincipal) XXX_Marshal ¶
func (m *MSPPrincipal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MSPPrincipal) XXX_Merge ¶
func (dst *MSPPrincipal) XXX_Merge(src proto.Message)
func (*MSPPrincipal) XXX_Size ¶
func (m *MSPPrincipal) XXX_Size() int
func (*MSPPrincipal) XXX_Unmarshal ¶
func (m *MSPPrincipal) XXX_Unmarshal(b []byte) error
type MSPPrincipal_Classification ¶
type MSPPrincipal_Classification int32
const ( MSPPrincipal_ROLE MSPPrincipal_Classification = 0 //MSP网络中的一个成员,以及 //MSP网络的管理员 MSPPrincipal_ORGANIZATION_UNIT MSPPrincipal_Classification = 1 //按MSP关联对实体进行分组 //例如,这可以用MSP表示 //组织单位 MSPPrincipal_IDENTITY MSPPrincipal_Classification = 2 //身份 MSPPrincipal_ANONYMITY MSPPrincipal_Classification = 3 //匿名的或名义的身份。 MSPPrincipal_COMBINED MSPPrincipal_Classification = 4 )
func (MSPPrincipal_Classification) EnumDescriptor ¶
func (MSPPrincipal_Classification) EnumDescriptor() ([]byte, []int)
func (MSPPrincipal_Classification) String ¶
func (x MSPPrincipal_Classification) String() string
type MSPRole ¶
type MSPRole struct { //msp identifier表示此主体的msp的标识符 //指 MspIdentifier string `protobuf:"bytes,1,opt,name=msp_identifier,json=mspIdentifier,proto3" json:"msp_identifier,omitempty"` //MSProleType定义哪些可用的、预先定义的MSP角色 //标识符msp identifier应位于msp中。 Role MSPRole_MSPRoleType `protobuf:"varint,2,opt,name=role,proto3,enum=common.MSPRole_MSPRoleType" json:"role,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
管理校长的组织 当mspprincipal的目标是定义 MSP中的两个专用角色:管理员和成员。
func (*MSPRole) Descriptor ¶
func (*MSPRole) GetMspIdentifier ¶
func (*MSPRole) GetRole ¶
func (m *MSPRole) GetRole() MSPRole_MSPRoleType
func (*MSPRole) ProtoMessage ¶
func (*MSPRole) ProtoMessage()
func (*MSPRole) XXX_DiscardUnknown ¶
func (m *MSPRole) XXX_DiscardUnknown()
func (*MSPRole) XXX_Marshal ¶
func (*MSPRole) XXX_Unmarshal ¶
type MSPRole_MSPRoleType ¶
type MSPRole_MSPRoleType int32
const ( MSPRole_MEMBER MSPRole_MSPRoleType = 0 MSPRole_ADMIN MSPRole_MSPRoleType = 1 MSPRole_CLIENT MSPRole_MSPRoleType = 2 MSPRole_PEER MSPRole_MSPRoleType = 3 )
func (MSPRole_MSPRoleType) EnumDescriptor ¶
func (MSPRole_MSPRoleType) EnumDescriptor() ([]byte, []int)
func (MSPRole_MSPRoleType) String ¶
func (x MSPRole_MSPRoleType) String() string
type OrganizationUnit ¶
type OrganizationUnit struct { //msp identifier表示此组织单位的msp的标识符 //指 MspIdentifier string `protobuf:"bytes,1,opt,name=msp_identifier,json=mspIdentifier,proto3" json:"msp_identifier,omitempty"` //OrganizationUnitIdentifier定义 //用MSPIdentifier标识的MSP OrganizationalUnitIdentifier string `` /* 147-byte string literal not displayed */ //certifiersidentifier是信任证书链的哈希 //与此组织单位相关 CertifiersIdentifier []byte `protobuf:"bytes,3,opt,name=certifiers_identifier,json=certifiersIdentifier,proto3" json:"certifiers_identifier,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
组织单位管理负责人的组织 当特定组织统一成员时策略主体的字段 将在策略主体中定义。
func (*OrganizationUnit) Descriptor ¶
func (*OrganizationUnit) Descriptor() ([]byte, []int)
func (*OrganizationUnit) GetCertifiersIdentifier ¶
func (m *OrganizationUnit) GetCertifiersIdentifier() []byte
func (*OrganizationUnit) GetMspIdentifier ¶
func (m *OrganizationUnit) GetMspIdentifier() string
func (*OrganizationUnit) GetOrganizationalUnitIdentifier ¶
func (m *OrganizationUnit) GetOrganizationalUnitIdentifier() string
func (*OrganizationUnit) ProtoMessage ¶
func (*OrganizationUnit) ProtoMessage()
func (*OrganizationUnit) Reset ¶
func (m *OrganizationUnit) Reset()
func (*OrganizationUnit) String ¶
func (m *OrganizationUnit) String() string
func (*OrganizationUnit) XXX_DiscardUnknown ¶
func (m *OrganizationUnit) XXX_DiscardUnknown()
func (*OrganizationUnit) XXX_Marshal ¶
func (m *OrganizationUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrganizationUnit) XXX_Merge ¶
func (dst *OrganizationUnit) XXX_Merge(src proto.Message)
func (*OrganizationUnit) XXX_Size ¶
func (m *OrganizationUnit) XXX_Size() int
func (*OrganizationUnit) XXX_Unmarshal ¶
func (m *OrganizationUnit) XXX_Unmarshal(b []byte) error
type SerializedIdemixIdentity ¶
type SerializedIdemixIdentity struct { //nym_x是笔名椭圆曲线点的x分量。 //它是amcl.big的[]字节表示形式 //笔名可以看作是身份的公钥,它用来验证签名。 NymX []byte `protobuf:"bytes,1,opt,name=nym_x,json=nymX,proto3" json:"nym_x,omitempty"` //nym_y是笔名椭圆曲线点的y分量。 //它是amcl.big的[]字节表示形式 //笔名可以看作是身份的公钥,它用来验证签名。 NymY []byte `protobuf:"bytes,2,opt,name=nym_y,json=nymY,proto3" json:"nym_y,omitempty"` //ou包含IDemix标识的组织单位 Ou []byte `protobuf:"bytes,3,opt,name=ou,proto3" json:"ou,omitempty"` //角色包含此标识的角色(例如,管理员或成员) Role []byte `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` //Proof包含此标识有效的加密证据 Proof []byte `protobuf:"bytes,5,opt,name=proof,proto3" json:"proof,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
此结构表示IDemix标识 用于序列化和反序列化。 idemixmsp将首先使用 此协议,然后将这些字节用作SerializedEntity中的ID_字节
func (*SerializedIdemixIdentity) Descriptor ¶
func (*SerializedIdemixIdentity) Descriptor() ([]byte, []int)
func (*SerializedIdemixIdentity) GetNymX ¶
func (m *SerializedIdemixIdentity) GetNymX() []byte
func (*SerializedIdemixIdentity) GetNymY ¶
func (m *SerializedIdemixIdentity) GetNymY() []byte
func (*SerializedIdemixIdentity) GetOu ¶
func (m *SerializedIdemixIdentity) GetOu() []byte
func (*SerializedIdemixIdentity) GetProof ¶
func (m *SerializedIdemixIdentity) GetProof() []byte
func (*SerializedIdemixIdentity) GetRole ¶
func (m *SerializedIdemixIdentity) GetRole() []byte
func (*SerializedIdemixIdentity) ProtoMessage ¶
func (*SerializedIdemixIdentity) ProtoMessage()
func (*SerializedIdemixIdentity) Reset ¶
func (m *SerializedIdemixIdentity) Reset()
func (*SerializedIdemixIdentity) String ¶
func (m *SerializedIdemixIdentity) String() string
func (*SerializedIdemixIdentity) XXX_DiscardUnknown ¶
func (m *SerializedIdemixIdentity) XXX_DiscardUnknown()
func (*SerializedIdemixIdentity) XXX_Marshal ¶
func (m *SerializedIdemixIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SerializedIdemixIdentity) XXX_Merge ¶
func (dst *SerializedIdemixIdentity) XXX_Merge(src proto.Message)
func (*SerializedIdemixIdentity) XXX_Size ¶
func (m *SerializedIdemixIdentity) XXX_Size() int
func (*SerializedIdemixIdentity) XXX_Unmarshal ¶
func (m *SerializedIdemixIdentity) XXX_Unmarshal(b []byte) error
type SerializedIdentity ¶
type SerializedIdentity struct { //关联的成员身份服务提供程序的标识符 Mspid string `protobuf:"bytes,1,opt,name=mspid,proto3" json:"mspid,omitempty"` //根据MPS规则序列化的标识 IdBytes []byte `protobuf:"bytes,2,opt,name=id_bytes,json=idBytes,proto3" json:"id_bytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
此结构表示一个标识 (及其MSP标识符)将被使用 将其序列化并反序列化
func (*SerializedIdentity) Descriptor ¶
func (*SerializedIdentity) Descriptor() ([]byte, []int)
func (*SerializedIdentity) GetIdBytes ¶
func (m *SerializedIdentity) GetIdBytes() []byte
func (*SerializedIdentity) GetMspid ¶
func (m *SerializedIdentity) GetMspid() string
func (*SerializedIdentity) ProtoMessage ¶
func (*SerializedIdentity) ProtoMessage()
func (*SerializedIdentity) Reset ¶
func (m *SerializedIdentity) Reset()
func (*SerializedIdentity) String ¶
func (m *SerializedIdentity) String() string
func (*SerializedIdentity) XXX_DiscardUnknown ¶
func (m *SerializedIdentity) XXX_DiscardUnknown()
func (*SerializedIdentity) XXX_Marshal ¶
func (m *SerializedIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SerializedIdentity) XXX_Merge ¶
func (dst *SerializedIdentity) XXX_Merge(src proto.Message)
func (*SerializedIdentity) XXX_Size ¶
func (m *SerializedIdentity) XXX_Size() int
func (*SerializedIdentity) XXX_Unmarshal ¶
func (m *SerializedIdentity) XXX_Unmarshal(b []byte) error
type SigningIdentityInfo ¶
type SigningIdentityInfo struct { //公共签名者携带签名的公共信息 //身份。对于X.509提供商,这将由 //X.509证书 PublicSigner []byte `protobuf:"bytes,1,opt,name=public_signer,json=publicSigner,proto3" json:"public_signer,omitempty"` //privatesigner表示对 //对等签名身份 PrivateSigner *KeyInfo `protobuf:"bytes,2,opt,name=private_signer,json=privateSigner,proto3" json:"private_signer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
signingIdentityInfo表示配置信息 与对等方用于生成的签名标识相关 赞同
func (*SigningIdentityInfo) Descriptor ¶
func (*SigningIdentityInfo) Descriptor() ([]byte, []int)
func (*SigningIdentityInfo) GetPrivateSigner ¶
func (m *SigningIdentityInfo) GetPrivateSigner() *KeyInfo
func (*SigningIdentityInfo) GetPublicSigner ¶
func (m *SigningIdentityInfo) GetPublicSigner() []byte
func (*SigningIdentityInfo) ProtoMessage ¶
func (*SigningIdentityInfo) ProtoMessage()
func (*SigningIdentityInfo) Reset ¶
func (m *SigningIdentityInfo) Reset()
func (*SigningIdentityInfo) String ¶
func (m *SigningIdentityInfo) String() string
func (*SigningIdentityInfo) XXX_DiscardUnknown ¶
func (m *SigningIdentityInfo) XXX_DiscardUnknown()
func (*SigningIdentityInfo) XXX_Marshal ¶
func (m *SigningIdentityInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SigningIdentityInfo) XXX_Merge ¶
func (dst *SigningIdentityInfo) XXX_Merge(src proto.Message)
func (*SigningIdentityInfo) XXX_Size ¶
func (m *SigningIdentityInfo) XXX_Size() int
func (*SigningIdentityInfo) XXX_Unmarshal ¶
func (m *SigningIdentityInfo) XXX_Unmarshal(b []byte) error