Documentation
¶
Index ¶
- Variables
- type IdemixIssuerPublicKey
- func (*IdemixIssuerPublicKey) Descriptor() ([]byte, []int)deprecated
- func (x *IdemixIssuerPublicKey) GetCurverId() *math.CurveID
- func (x *IdemixIssuerPublicKey) GetPublicKey() []byte
- func (*IdemixIssuerPublicKey) ProtoMessage()
- func (x *IdemixIssuerPublicKey) ProtoReflect() protoreflect.Message
- func (x *IdemixIssuerPublicKey) Reset()
- func (x *IdemixIssuerPublicKey) String() string
- type Identity
- type PublicParameters
- func (*PublicParameters) Descriptor() ([]byte, []int)deprecated
- func (x *PublicParameters) GetAuditors() []*Identity
- func (x *PublicParameters) GetCurveId() *math.CurveID
- func (x *PublicParameters) GetIdemixIssuerPublicKeys() []*IdemixIssuerPublicKey
- func (x *PublicParameters) GetIssuers() []*Identity
- func (x *PublicParameters) GetMaxToken() uint64
- func (x *PublicParameters) GetPedersenGenerators() []*math.G1
- func (x *PublicParameters) GetQuantityPrecision() uint64
- func (x *PublicParameters) GetRangeProofParams() *RangeProofParams
- func (x *PublicParameters) GetTokenDriverName() string
- func (x *PublicParameters) GetTokenDriverVersion() uint64
- func (*PublicParameters) ProtoMessage()
- func (x *PublicParameters) ProtoReflect() protoreflect.Message
- func (x *PublicParameters) Reset()
- func (x *PublicParameters) String() string
- type RangeProofParams
- func (*RangeProofParams) Descriptor() ([]byte, []int)deprecated
- func (x *RangeProofParams) GetBitLength() uint64
- func (x *RangeProofParams) GetLeftGenerators() []*math.G1
- func (x *RangeProofParams) GetNumberOfRounds() uint64
- func (x *RangeProofParams) GetP() *math.G1
- func (x *RangeProofParams) GetQ() *math.G1
- func (x *RangeProofParams) GetRightGenerators() []*math.G1
- func (*RangeProofParams) ProtoMessage()
- func (x *RangeProofParams) ProtoReflect() protoreflect.Message
- func (x *RangeProofParams) Reset()
- func (x *RangeProofParams) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_noghpp_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type IdemixIssuerPublicKey ¶
type IdemixIssuerPublicKey struct {
PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
CurverId *math.CurveID `protobuf:"bytes,2,opt,name=curver_id,json=curverId,proto3" json:"curver_id,omitempty"`
// contains filtered or unexported fields
}
func (*IdemixIssuerPublicKey) Descriptor
deprecated
func (*IdemixIssuerPublicKey) Descriptor() ([]byte, []int)
Deprecated: Use IdemixIssuerPublicKey.ProtoReflect.Descriptor instead.
func (*IdemixIssuerPublicKey) GetCurverId ¶
func (x *IdemixIssuerPublicKey) GetCurverId() *math.CurveID
func (*IdemixIssuerPublicKey) GetPublicKey ¶
func (x *IdemixIssuerPublicKey) GetPublicKey() []byte
func (*IdemixIssuerPublicKey) ProtoMessage ¶
func (*IdemixIssuerPublicKey) ProtoMessage()
func (*IdemixIssuerPublicKey) ProtoReflect ¶
func (x *IdemixIssuerPublicKey) ProtoReflect() protoreflect.Message
func (*IdemixIssuerPublicKey) Reset ¶
func (x *IdemixIssuerPublicKey) Reset()
func (*IdemixIssuerPublicKey) String ¶
func (x *IdemixIssuerPublicKey) String() string
type Identity ¶
type Identity struct {
Raw []byte `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"`
// contains filtered or unexported fields
}
func (*Identity) Descriptor
deprecated
func (*Identity) ProtoMessage ¶
func (*Identity) ProtoMessage()
func (*Identity) ProtoReflect ¶
func (x *Identity) ProtoReflect() protoreflect.Message
type PublicParameters ¶
type PublicParameters struct {
TokenDriverName string `protobuf:"bytes,1,opt,name=token_driver_name,json=tokenDriverName,proto3" json:"token_driver_name,omitempty"` // the identifier of the token driver
TokenDriverVersion uint64 `protobuf:"varint,2,opt,name=token_driver_version,json=tokenDriverVersion,proto3" json:"token_driver_version,omitempty"` // the version of the token driver
CurveId *math.CurveID `protobuf:"bytes,3,opt,name=curve_id,json=curveId,proto3" json:"curve_id,omitempty"` // the pairing-friendly elliptic curve used for everything but Idemix.
PedersenGenerators []*math.G1 `protobuf:"bytes,4,rep,name=pedersen_generators,json=pedersenGenerators,proto3" json:"pedersen_generators,omitempty"` // contains the public parameters for the Pedersen commitment scheme.
RangeProofParams *RangeProofParams `protobuf:"bytes,5,opt,name=range_proof_params,json=rangeProofParams,proto3" json:"range_proof_params,omitempty"` // contains the public parameters for the range proof scheme.
IdemixIssuerPublicKeys []*IdemixIssuerPublicKey `` // contains the idemix issuer public keys. Wallets should prefer the use of keys valid under the public key whose index in the array is the smallest.
/* 131-byte string literal not displayed */
Auditors []*Identity `protobuf:"bytes,7,rep,name=auditors,proto3" json:"auditors,omitempty"` // is the public key of the auditor.
Issuers []*Identity `protobuf:"bytes,8,rep,name=issuers,proto3" json:"issuers,omitempty"` // is a list of public keys of the entities that can issue tokens.
MaxToken uint64 `protobuf:"varint,9,opt,name=max_token,json=maxToken,proto3" json:"max_token,omitempty"` // is the maximum quantity a token can hold
QuantityPrecision uint64 `protobuf:"varint,10,opt,name=quantity_precision,json=quantityPrecision,proto3" json:"quantity_precision,omitempty"` // is the precision used to represent quantities
// contains filtered or unexported fields
}
PublicParameters describes typed public parameters
func (*PublicParameters) Descriptor
deprecated
func (*PublicParameters) Descriptor() ([]byte, []int)
Deprecated: Use PublicParameters.ProtoReflect.Descriptor instead.
func (*PublicParameters) GetAuditors ¶
func (x *PublicParameters) GetAuditors() []*Identity
func (*PublicParameters) GetCurveId ¶
func (x *PublicParameters) GetCurveId() *math.CurveID
func (*PublicParameters) GetIdemixIssuerPublicKeys ¶
func (x *PublicParameters) GetIdemixIssuerPublicKeys() []*IdemixIssuerPublicKey
func (*PublicParameters) GetIssuers ¶
func (x *PublicParameters) GetIssuers() []*Identity
func (*PublicParameters) GetMaxToken ¶
func (x *PublicParameters) GetMaxToken() uint64
func (*PublicParameters) GetPedersenGenerators ¶
func (x *PublicParameters) GetPedersenGenerators() []*math.G1
func (*PublicParameters) GetQuantityPrecision ¶
func (x *PublicParameters) GetQuantityPrecision() uint64
func (*PublicParameters) GetRangeProofParams ¶
func (x *PublicParameters) GetRangeProofParams() *RangeProofParams
func (*PublicParameters) GetTokenDriverName ¶
func (x *PublicParameters) GetTokenDriverName() string
func (*PublicParameters) GetTokenDriverVersion ¶
func (x *PublicParameters) GetTokenDriverVersion() uint64
func (*PublicParameters) ProtoMessage ¶
func (*PublicParameters) ProtoMessage()
func (*PublicParameters) ProtoReflect ¶
func (x *PublicParameters) ProtoReflect() protoreflect.Message
func (*PublicParameters) Reset ¶
func (x *PublicParameters) Reset()
func (*PublicParameters) String ¶
func (x *PublicParameters) String() string
type RangeProofParams ¶
type RangeProofParams struct {
LeftGenerators []*math.G1 `protobuf:"bytes,1,rep,name=left_generators,json=leftGenerators,proto3" json:"left_generators,omitempty"`
RightGenerators []*math.G1 `protobuf:"bytes,2,rep,name=right_generators,json=rightGenerators,proto3" json:"right_generators,omitempty"`
P *math.G1 `protobuf:"bytes,3,opt,name=P,proto3" json:"P,omitempty"`
Q *math.G1 `protobuf:"bytes,4,opt,name=Q,proto3" json:"Q,omitempty"`
BitLength uint64 `protobuf:"varint,5,opt,name=bit_length,json=bitLength,proto3" json:"bit_length,omitempty"`
NumberOfRounds uint64 `protobuf:"varint,6,opt,name=number_of_rounds,json=numberOfRounds,proto3" json:"number_of_rounds,omitempty"`
// contains filtered or unexported fields
}
func (*RangeProofParams) Descriptor
deprecated
func (*RangeProofParams) Descriptor() ([]byte, []int)
Deprecated: Use RangeProofParams.ProtoReflect.Descriptor instead.
func (*RangeProofParams) GetBitLength ¶
func (x *RangeProofParams) GetBitLength() uint64
func (*RangeProofParams) GetLeftGenerators ¶
func (x *RangeProofParams) GetLeftGenerators() []*math.G1
func (*RangeProofParams) GetNumberOfRounds ¶
func (x *RangeProofParams) GetNumberOfRounds() uint64
func (*RangeProofParams) GetP ¶
func (x *RangeProofParams) GetP() *math.G1
func (*RangeProofParams) GetQ ¶
func (x *RangeProofParams) GetQ() *math.G1
func (*RangeProofParams) GetRightGenerators ¶
func (x *RangeProofParams) GetRightGenerators() []*math.G1
func (*RangeProofParams) ProtoMessage ¶
func (*RangeProofParams) ProtoMessage()
func (*RangeProofParams) ProtoReflect ¶
func (x *RangeProofParams) ProtoReflect() protoreflect.Message
func (*RangeProofParams) Reset ¶
func (x *RangeProofParams) Reset()
func (*RangeProofParams) String ¶
func (x *RangeProofParams) String() string
Click to show internal directories.
Click to hide internal directories.