Documentation
¶
Index ¶
- type IdemixMSPConfig
- func (*IdemixMSPConfig) Descriptor() ([]byte, []int)
- func (m *IdemixMSPConfig) GetCurveId() string
- func (m *IdemixMSPConfig) GetEpoch() int64
- func (m *IdemixMSPConfig) GetIpk() []byte
- func (m *IdemixMSPConfig) GetName() string
- func (m *IdemixMSPConfig) GetRevocationPk() []byte
- func (m *IdemixMSPConfig) GetSchema() string
- 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 (m *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) GetCurveId() string
- func (m *IdemixMSPSignerConfig) GetEnrollmentId() string
- func (m *IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier() string
- func (m *IdemixMSPSignerConfig) GetRevocationHandle() string
- func (m *IdemixMSPSignerConfig) GetRole() int32
- func (m *IdemixMSPSignerConfig) GetSchema() string
- 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 (m *IdemixMSPSignerConfig) XXX_Merge(src proto.Message)
- func (m *IdemixMSPSignerConfig) XXX_Size() int
- func (m *IdemixMSPSignerConfig) 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 (m *SerializedIdemixIdentity) GetSchema() string
- 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 (m *SerializedIdemixIdentity) XXX_Merge(src proto.Message)
- func (m *SerializedIdemixIdentity) XXX_Size() int
- func (m *SerializedIdemixIdentity) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdemixMSPConfig ¶
type IdemixMSPConfig struct {
// Name holds the identifier of the MSP
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// ipk represents the (serialized) issuer public key
Ipk []byte `protobuf:"bytes,2,opt,name=ipk,proto3" json:"ipk,omitempty"`
// signer may contain crypto material to configure a default signer
Signer *IdemixMSPSignerConfig `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"`
// revocation_pk is the public key used for revocation of credentials
RevocationPk []byte `protobuf:"bytes,4,opt,name=revocation_pk,json=revocationPk,proto3" json:"revocation_pk,omitempty"`
// epoch represents the current epoch (time interval) used for revocation
Epoch int64 `protobuf:"varint,5,opt,name=epoch,proto3" json:"epoch,omitempty"`
// curve_id indicates which Elliptic Curve should be used
CurveId string `protobuf:"bytes,6,opt,name=curve_id,json=curveId,proto3" json:"curve_id,omitempty"`
// schema contains the version of the schema used by this credential
Schema string `protobuf:"bytes,7,opt,name=schema,proto3" json:"schema,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*IdemixMSPConfig) Descriptor ¶
func (*IdemixMSPConfig) Descriptor() ([]byte, []int)
func (*IdemixMSPConfig) GetCurveId ¶
func (m *IdemixMSPConfig) GetCurveId() string
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) GetSchema ¶
func (m *IdemixMSPConfig) GetSchema() string
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 (m *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 represents the serialized idemix credential of the default signer
Cred []byte `protobuf:"bytes,1,opt,name=cred,proto3" json:"cred,omitempty"`
// sk is the secret key of the default signer, corresponding to credential Cred
Sk []byte `protobuf:"bytes,2,opt,name=sk,proto3" json:"sk,omitempty"`
// organizational_unit_identifier defines the organizational unit the default signer is in
OrganizationalUnitIdentifier string `` /* 147-byte string literal not displayed */
// role defines whether the default signer is admin, peer, member or client
Role int32 `protobuf:"varint,4,opt,name=role,proto3" json:"role,omitempty"`
// enrollment_id contains the enrollment id of this signer
EnrollmentId string `protobuf:"bytes,5,opt,name=enrollment_id,json=enrollmentId,proto3" json:"enrollment_id,omitempty"`
// credential_revocation_information contains a serialized CredentialRevocationInformation
CredentialRevocationInformation []byte `` /* 156-byte string literal not displayed */
// RevocationHandle is the handle used to single out this credential and determine its revocation status
RevocationHandle string `protobuf:"bytes,7,opt,name=revocation_handle,json=revocationHandle,proto3" json:"revocation_handle,omitempty"`
// curve_id indicates which Elliptic Curve should be used
CurveId string `protobuf:"bytes,8,opt,name=curve_id,json=curveId,proto3" json:"curve_id,omitempty"`
// schema contains the version of the schema used by this credential
Schema string `protobuf:"bytes,9,opt,name=schema,proto3" json:"schema,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
IdemixMSPSIgnerConfig contains the crypto material to set up an idemix signing identity
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) GetCurveId ¶
func (m *IdemixMSPSignerConfig) GetCurveId() string
func (*IdemixMSPSignerConfig) GetEnrollmentId ¶
func (m *IdemixMSPSignerConfig) GetEnrollmentId() string
func (*IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier ¶
func (m *IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier() string
func (*IdemixMSPSignerConfig) GetRevocationHandle ¶
func (m *IdemixMSPSignerConfig) GetRevocationHandle() string
func (*IdemixMSPSignerConfig) GetRole ¶
func (m *IdemixMSPSignerConfig) GetRole() int32
func (*IdemixMSPSignerConfig) GetSchema ¶
func (m *IdemixMSPSignerConfig) GetSchema() string
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 (m *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 SerializedIdemixIdentity ¶
type SerializedIdemixIdentity struct {
// nym_x is the X-component of the pseudonym elliptic curve point.
// It is a []byte representation of an amcl.BIG
// The pseudonym can be seen as a public key of the identity, it is used to verify signatures.
NymX []byte `protobuf:"bytes,1,opt,name=nym_x,json=nymX,proto3" json:"nym_x,omitempty"`
// nym_y is the Y-component of the pseudonym elliptic curve point.
// It is a []byte representation of an amcl.BIG
// The pseudonym can be seen as a public key of the identity, it is used to verify signatures.
NymY []byte `protobuf:"bytes,2,opt,name=nym_y,json=nymY,proto3" json:"nym_y,omitempty"`
// ou contains the organizational unit of the idemix identity
Ou []byte `protobuf:"bytes,3,opt,name=ou,proto3" json:"ou,omitempty"`
// role contains the role of this identity (e.g., ADMIN or MEMBER)
Role []byte `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"`
// proof contains the cryptographic evidence that this identity is valid
Proof []byte `protobuf:"bytes,5,opt,name=proof,proto3" json:"proof,omitempty"`
// schema contains the version of the schema used by this credential
Schema string `protobuf:"bytes,6,opt,name=schema,proto3" json:"schema,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
This struct represents an Idemix Identity to be used to serialize it and deserialize it. The IdemixMSP will first serialize an idemix identity to bytes using this proto, and then uses these bytes as id_bytes in SerializedIdentity
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) GetSchema ¶
func (m *SerializedIdemixIdentity) GetSchema() string
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 (m *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
Click to show internal directories.
Click to hide internal directories.