Versions in this module Expand all Collapse all v1 v1.0.1 Mar 12, 2024 Changes in this version + var ProofBytes = map[RevocationAlgorithm]int + func SetLogger(l Logger) + type CredRequest struct + IssuerNonce []byte + Nym *amcl.ECP + ProofC []byte + ProofS []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*CredRequest) Descriptor() ([]byte, []int) + func (*CredRequest) ProtoMessage() + func (m *CredRequest) Check(ipk *IssuerPublicKey, curve *math.Curve, tr Translator) error + func (m *CredRequest) GetIssuerNonce() []byte + func (m *CredRequest) GetNym() *amcl.ECP + func (m *CredRequest) GetProofC() []byte + func (m *CredRequest) GetProofS() []byte + func (m *CredRequest) Reset() + func (m *CredRequest) String() string + func (m *CredRequest) XXX_DiscardUnknown() + func (m *CredRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CredRequest) XXX_Merge(src proto.Message) + func (m *CredRequest) XXX_Size() int + func (m *CredRequest) XXX_Unmarshal(b []byte) error + type Credential struct + A *amcl.ECP + Attrs [][]byte + B *amcl.ECP + E []byte + S []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Credential) Descriptor() ([]byte, []int) + func (*Credential) ProtoMessage() + func (cred *Credential) Ver(sk *math.Zr, ipk *IssuerPublicKey, curve *math.Curve, t Translator) error + func (m *Credential) GetA() *amcl.ECP + func (m *Credential) GetAttrs() [][]byte + func (m *Credential) GetB() *amcl.ECP + func (m *Credential) GetE() []byte + func (m *Credential) GetS() []byte + func (m *Credential) Reset() + func (m *Credential) String() string + func (m *Credential) XXX_DiscardUnknown() + func (m *Credential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Credential) XXX_Merge(src proto.Message) + func (m *Credential) XXX_Size() int + func (m *Credential) XXX_Unmarshal(b []byte) error + type CredentialRevocationInformation struct + Epoch int64 + EpochPk *amcl.ECP2 + EpochPkSig []byte + RevocationAlg int32 + RevocationData []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*CredentialRevocationInformation) Descriptor() ([]byte, []int) + func (*CredentialRevocationInformation) ProtoMessage() + func (m *CredentialRevocationInformation) GetEpoch() int64 + func (m *CredentialRevocationInformation) GetEpochPk() *amcl.ECP2 + func (m *CredentialRevocationInformation) GetEpochPkSig() []byte + func (m *CredentialRevocationInformation) GetRevocationAlg() int32 + func (m *CredentialRevocationInformation) GetRevocationData() []byte + func (m *CredentialRevocationInformation) Reset() + func (m *CredentialRevocationInformation) String() string + func (m *CredentialRevocationInformation) XXX_DiscardUnknown() + func (m *CredentialRevocationInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CredentialRevocationInformation) XXX_Merge(src proto.Message) + func (m *CredentialRevocationInformation) XXX_Size() int + func (m *CredentialRevocationInformation) XXX_Unmarshal(b []byte) error + type EIDNym struct + Nym *amcl.ECP + ProofSEid []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*EIDNym) Descriptor() ([]byte, []int) + func (*EIDNym) ProtoMessage() + func (m *EIDNym) GetNym() *amcl.ECP + func (m *EIDNym) GetProofSEid() []byte + func (m *EIDNym) Reset() + func (m *EIDNym) String() string + func (m *EIDNym) XXX_DiscardUnknown() + func (m *EIDNym) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *EIDNym) XXX_Merge(src proto.Message) + func (m *EIDNym) XXX_Size() int + func (m *EIDNym) XXX_Unmarshal(b []byte) error + type Idemix struct + Curve *math.Curve + Translator Translator + func (i *Idemix) CreateCRI(key *ecdsa.PrivateKey, unrevokedHandles []*math.Zr, epoch int, ...) (*CredentialRevocationInformation, error) + func (i *Idemix) GenerateLongTermRevocationKey() (*ecdsa.PrivateKey, error) + func (i *Idemix) LongTermRevocationKeyFromBytes(raw []byte) (*ecdsa.PrivateKey, error) + func (i *Idemix) MakeNym(sk *math.Zr, IPk *IssuerPublicKey, rng io.Reader, t Translator) (*math.G1, *math.Zr, error) + func (i *Idemix) MakeNymFromBytes(raw []byte) (*math.G1, *math.Zr, error) + func (i *Idemix) NewCredRequest(sk *math.Zr, IssuerNonce []byte, ipk *IssuerPublicKey, rng io.Reader, ...) (*CredRequest, error) + func (i *Idemix) NewCredential(key *IssuerKey, m *CredRequest, attrs []*math.Zr, rng io.Reader, t Translator) (*Credential, error) + func (i *Idemix) NewIssuerKey(AttributeNames []string, rng io.Reader, t Translator) (*IssuerKey, error) + func (i *Idemix) NewIssuerKeyFromBytes(raw []byte) (*IssuerKey, error) + func (i *Idemix) NewNymSignature(sk *math.Zr, Nym *math.G1, RNym *math.Zr, ipk *IssuerPublicKey, msg []byte, ...) (*NymSignature, error) + func (i *Idemix) NewSignature(cred *Credential, sk *math.Zr, Nym *math.G1, RNym *math.Zr, ...) (*Signature, *opts.IdemixSignerMetadata, error) + func (i *Idemix) VerifyEpochPK(pk *ecdsa.PublicKey, epochPK *amcl.ECP2, epochPkSig []byte, epoch int, ...) error + type IssuerKey struct + Ipk *IssuerPublicKey + Isk []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*IssuerKey) Descriptor() ([]byte, []int) + func (*IssuerKey) ProtoMessage() + func (m *IssuerKey) GetIpk() *IssuerPublicKey + func (m *IssuerKey) GetIsk() []byte + func (m *IssuerKey) Reset() + func (m *IssuerKey) String() string + func (m *IssuerKey) XXX_DiscardUnknown() + func (m *IssuerKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *IssuerKey) XXX_Merge(src proto.Message) + func (m *IssuerKey) XXX_Size() int + func (m *IssuerKey) XXX_Unmarshal(b []byte) error + type IssuerPublicKey struct + AttributeNames []string + BarG1 *amcl.ECP + BarG2 *amcl.ECP + HAttrs []*amcl.ECP + HRand *amcl.ECP + HSk *amcl.ECP + Hash []byte + ProofC []byte + ProofS []byte + W *amcl.ECP2 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*IssuerPublicKey) Descriptor() ([]byte, []int) + func (*IssuerPublicKey) ProtoMessage() + func (IPk *IssuerPublicKey) Check(curve *math.Curve, t Translator) error + func (IPk *IssuerPublicKey) SetHash(curve *math.Curve) error + func (m *IssuerPublicKey) GetAttributeNames() []string + func (m *IssuerPublicKey) GetBarG1() *amcl.ECP + func (m *IssuerPublicKey) GetBarG2() *amcl.ECP + func (m *IssuerPublicKey) GetHAttrs() []*amcl.ECP + func (m *IssuerPublicKey) GetHRand() *amcl.ECP + func (m *IssuerPublicKey) GetHSk() *amcl.ECP + func (m *IssuerPublicKey) GetHash() []byte + func (m *IssuerPublicKey) GetProofC() []byte + func (m *IssuerPublicKey) GetProofS() []byte + func (m *IssuerPublicKey) GetW() *amcl.ECP2 + func (m *IssuerPublicKey) Reset() + func (m *IssuerPublicKey) String() string + func (m *IssuerPublicKey) XXX_DiscardUnknown() + func (m *IssuerPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *IssuerPublicKey) XXX_Merge(src proto.Message) + func (m *IssuerPublicKey) XXX_Size() int + func (m *IssuerPublicKey) XXX_Unmarshal(b []byte) error + type LogFunc func(format string, a ...interface{}) + func (l LogFunc) Printf(format string, a ...interface{}) + type Logger interface + Printf func(format string, a ...interface{}) + type NonRevocationProof struct + NonRevocationProof []byte + RevocationAlg int32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*NonRevocationProof) Descriptor() ([]byte, []int) + func (*NonRevocationProof) ProtoMessage() + func (m *NonRevocationProof) GetNonRevocationProof() []byte + func (m *NonRevocationProof) GetRevocationAlg() int32 + func (m *NonRevocationProof) Reset() + func (m *NonRevocationProof) String() string + func (m *NonRevocationProof) XXX_DiscardUnknown() + func (m *NonRevocationProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *NonRevocationProof) XXX_Merge(src proto.Message) + func (m *NonRevocationProof) XXX_Size() int + func (m *NonRevocationProof) XXX_Unmarshal(b []byte) error + type NymEID []byte + func (nym NymEID) AuditNymEid(ipk *IssuerPublicKey, eidAttr *math.Zr, eidIndex int, RNymEid *math.Zr, ...) error + type NymRH []byte + func (nym NymRH) AuditNymRh(ipk *IssuerPublicKey, rhAttr *math.Zr, rhIndex int, RNymRh *math.Zr, ...) error + type NymSignature struct + Nonce []byte + ProofC []byte + ProofSRNym []byte + ProofSSk []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*NymSignature) Descriptor() ([]byte, []int) + func (*NymSignature) ProtoMessage() + func (m *NymSignature) GetNonce() []byte + func (m *NymSignature) GetProofC() []byte + func (m *NymSignature) GetProofSRNym() []byte + func (m *NymSignature) GetProofSSk() []byte + func (m *NymSignature) Reset() + func (m *NymSignature) String() string + func (m *NymSignature) XXX_DiscardUnknown() + func (m *NymSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *NymSignature) XXX_Merge(src proto.Message) + func (m *NymSignature) XXX_Size() int + func (m *NymSignature) XXX_Unmarshal(b []byte) error + func (sig *NymSignature) Ver(nym *math.G1, ipk *IssuerPublicKey, msg []byte, curve *math.Curve, ...) error + type RHNym struct + Nym *amcl.ECP + ProofSRh []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RHNym) Descriptor() ([]byte, []int) + func (*RHNym) ProtoMessage() + func (m *RHNym) GetNym() *amcl.ECP + func (m *RHNym) GetProofSRh() []byte + func (m *RHNym) Reset() + func (m *RHNym) String() string + func (m *RHNym) XXX_DiscardUnknown() + func (m *RHNym) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RHNym) XXX_Merge(src proto.Message) + func (m *RHNym) XXX_Size() int + func (m *RHNym) XXX_Unmarshal(b []byte) error + type RevocationAlgorithm int32 + const ALG_NO_REVOCATION + type Signature struct + ABar *amcl.ECP + APrime *amcl.ECP + BPrime *amcl.ECP + EidNym *EIDNym + Epoch int64 + NonRevocationProof *NonRevocationProof + Nonce []byte + Nym *amcl.ECP + ProofC []byte + ProofSAttrs [][]byte + ProofSE []byte + ProofSR2 []byte + ProofSR3 []byte + ProofSRNym []byte + ProofSSPrime []byte + ProofSSk []byte + RevocationEpochPk *amcl.ECP2 + RevocationPkSig []byte + RhNym *RHNym + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Signature) Descriptor() ([]byte, []int) + func (*Signature) ProtoMessage() + func (m *Signature) GetABar() *amcl.ECP + func (m *Signature) GetAPrime() *amcl.ECP + func (m *Signature) GetBPrime() *amcl.ECP + func (m *Signature) GetEidNym() *EIDNym + func (m *Signature) GetEpoch() int64 + func (m *Signature) GetNonRevocationProof() *NonRevocationProof + func (m *Signature) GetNonce() []byte + func (m *Signature) GetNym() *amcl.ECP + func (m *Signature) GetProofC() []byte + func (m *Signature) GetProofSAttrs() [][]byte + func (m *Signature) GetProofSE() []byte + func (m *Signature) GetProofSR2() []byte + func (m *Signature) GetProofSR3() []byte + func (m *Signature) GetProofSRNym() []byte + func (m *Signature) GetProofSSPrime() []byte + func (m *Signature) GetProofSSk() []byte + func (m *Signature) GetRevocationEpochPk() *amcl.ECP2 + func (m *Signature) GetRevocationPkSig() []byte + func (m *Signature) GetRhNym() *RHNym + func (m *Signature) Reset() + func (m *Signature) String() string + func (m *Signature) XXX_DiscardUnknown() + func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Signature) XXX_Merge(src proto.Message) + func (m *Signature) XXX_Size() int + func (m *Signature) XXX_Unmarshal(b []byte) error + func (sig *Signature) AuditNymEid(ipk *IssuerPublicKey, eidAttr *math.Zr, eidIndex int, RNymEid *math.Zr, ...) error + func (sig *Signature) AuditNymRh(ipk *IssuerPublicKey, rhAttr *math.Zr, rhIndex int, RNymRh *math.Zr, ...) error + func (sig *Signature) Ver(Disclosure []byte, ipk *IssuerPublicKey, msg []byte, ...) error + type Translator interface + G1FromProto func(*amcl.ECP) (*math.G1, error) + G1FromRawBytes func([]byte) (*math.G1, error) + G1ToProto func(*math.G1) *amcl.ECP + G2FromProto func(*amcl.ECP2) (*math.G2, error) + G2ToProto func(*math.G2) *amcl.ECP2