config

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_idemix_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type IdemixConfig

type IdemixConfig struct {

	// Version indicates message protocol version
	Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Name holds the identifier of the
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// ipk represents the (serialized) issuer public key
	Ipk []byte `protobuf:"bytes,3,opt,name=ipk,proto3" json:"ipk,omitempty"`
	// signer may contain crypto material to configure a default signer
	Signer *IdemixSignerConfig `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty"`
	// revocation_pk is the public key used for revocation of credentials
	RevocationPk []byte `protobuf:"bytes,5,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,6,opt,name=epoch,proto3" json:"epoch,omitempty"`
	// curve_id indicates which Elliptic Curve should be used
	CurveId string `protobuf:"bytes,7,opt,name=curve_id,json=curveId,proto3" json:"curve_id,omitempty"`
	// contains filtered or unexported fields
}

func (*IdemixConfig) Descriptor deprecated

func (*IdemixConfig) Descriptor() ([]byte, []int)

Deprecated: Use IdemixConfig.ProtoReflect.Descriptor instead.

func (*IdemixConfig) GetCurveId

func (x *IdemixConfig) GetCurveId() string

func (*IdemixConfig) GetEpoch

func (x *IdemixConfig) GetEpoch() int64

func (*IdemixConfig) GetIpk

func (x *IdemixConfig) GetIpk() []byte

func (*IdemixConfig) GetName

func (x *IdemixConfig) GetName() string

func (*IdemixConfig) GetRevocationPk

func (x *IdemixConfig) GetRevocationPk() []byte

func (*IdemixConfig) GetSigner

func (x *IdemixConfig) GetSigner() *IdemixSignerConfig

func (*IdemixConfig) GetVersion

func (x *IdemixConfig) GetVersion() uint64

func (*IdemixConfig) ProtoMessage

func (*IdemixConfig) ProtoMessage()

func (*IdemixConfig) ProtoReflect

func (x *IdemixConfig) ProtoReflect() protoreflect.Message

func (*IdemixConfig) Reset

func (x *IdemixConfig) Reset()

func (*IdemixConfig) String

func (x *IdemixConfig) String() string

type IdemixSignerConfig

type IdemixSignerConfig 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"`
	// is the identifier of the secret key sk
	Ski []byte `protobuf:"bytes,8,opt,name=ski,proto3" json:"ski,omitempty"`
	// contains filtered or unexported fields
}

IdemixSignerConfig contains the crypto material to set up an idemix signing identity

func (*IdemixSignerConfig) Descriptor deprecated

func (*IdemixSignerConfig) Descriptor() ([]byte, []int)

Deprecated: Use IdemixSignerConfig.ProtoReflect.Descriptor instead.

func (*IdemixSignerConfig) GetCred

func (x *IdemixSignerConfig) GetCred() []byte

func (*IdemixSignerConfig) GetCredentialRevocationInformation

func (x *IdemixSignerConfig) GetCredentialRevocationInformation() []byte

func (*IdemixSignerConfig) GetEnrollmentId

func (x *IdemixSignerConfig) GetEnrollmentId() string

func (*IdemixSignerConfig) GetOrganizationalUnitIdentifier

func (x *IdemixSignerConfig) GetOrganizationalUnitIdentifier() string

func (*IdemixSignerConfig) GetRevocationHandle

func (x *IdemixSignerConfig) GetRevocationHandle() string

func (*IdemixSignerConfig) GetRole

func (x *IdemixSignerConfig) GetRole() int32

func (*IdemixSignerConfig) GetSk

func (x *IdemixSignerConfig) GetSk() []byte

func (*IdemixSignerConfig) GetSki

func (x *IdemixSignerConfig) GetSki() []byte

func (*IdemixSignerConfig) ProtoMessage

func (*IdemixSignerConfig) ProtoMessage()

func (*IdemixSignerConfig) ProtoReflect

func (x *IdemixSignerConfig) ProtoReflect() protoreflect.Message

func (*IdemixSignerConfig) Reset

func (x *IdemixSignerConfig) Reset()

func (*IdemixSignerConfig) String

func (x *IdemixSignerConfig) String() string

type SerializedIdemixIdentity

type SerializedIdemixIdentity struct {

	// is the pseudonym's public key
	NymPublicKey []byte `protobuf:"bytes,1,opt,name=nym_public_key,json=nymPublicKey,proto3" json:"nym_public_key,omitempty"`
	// ou contains the organizational unit of the idemix identity
	Ou []byte `protobuf:"bytes,2,opt,name=ou,proto3" json:"ou,omitempty"`
	// role contains the role of this identity (e.g., ADMIN or MEMBER)
	Role []byte `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
	// proof contains the cryptographic evidence that this identity is valid
	Proof []byte `protobuf:"bytes,4,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

This struct represents an Idemix Identity to be used to serialize it and deserialize it.

func (*SerializedIdemixIdentity) Descriptor deprecated

func (*SerializedIdemixIdentity) Descriptor() ([]byte, []int)

Deprecated: Use SerializedIdemixIdentity.ProtoReflect.Descriptor instead.

func (*SerializedIdemixIdentity) GetNymPublicKey

func (x *SerializedIdemixIdentity) GetNymPublicKey() []byte

func (*SerializedIdemixIdentity) GetOu

func (x *SerializedIdemixIdentity) GetOu() []byte

func (*SerializedIdemixIdentity) GetProof

func (x *SerializedIdemixIdentity) GetProof() []byte

func (*SerializedIdemixIdentity) GetRole

func (x *SerializedIdemixIdentity) GetRole() []byte

func (*SerializedIdemixIdentity) ProtoMessage

func (*SerializedIdemixIdentity) ProtoMessage()

func (*SerializedIdemixIdentity) ProtoReflect

func (x *SerializedIdemixIdentity) ProtoReflect() protoreflect.Message

func (*SerializedIdemixIdentity) Reset

func (x *SerializedIdemixIdentity) Reset()

func (*SerializedIdemixIdentity) String

func (x *SerializedIdemixIdentity) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL