Versions in this module Expand all Collapse all v0 v0.0.1 Oct 21, 2022 Changes in this version + type CredRequest struct + Idemix *idemix.Idemix + Translator idemix.Translator + func (cr *CredRequest) Sign(sk *math.Zr, ipk handlers.IssuerPublicKey, nonce []byte) (res []byte, err error) + func (cr *CredRequest) Verify(credentialRequest []byte, ipk handlers.IssuerPublicKey, nonce []byte) (err error) + type Credential struct + Idemix *idemix.Idemix + Translator idemix.Translator + func (c *Credential) Sign(key handlers.IssuerSecretKey, credentialRequest []byte, ...) (res []byte, err error) + func (c *Credential) Verify(sk *math.Zr, ipk handlers.IssuerPublicKey, credential []byte, ...) (err error) + type Issuer struct + Idemix *idemix.Idemix + Translator idemix.Translator + func (i *Issuer) NewKey(attributeNames []string) (res handlers.IssuerSecretKey, err error) + func (i *Issuer) NewKeyFromBytes(raw []byte, attributes []string) (res handlers.IssuerSecretKey, err error) + func (i *Issuer) NewPublicKeyFromBytes(raw []byte, attributes []string) (res handlers.IssuerPublicKey, err error) + type IssuerPublicKey struct + PK *idemix.IssuerPublicKey + func (o *IssuerPublicKey) Bytes() ([]byte, error) + func (o *IssuerPublicKey) Hash() []byte + type IssuerSecretKey struct + SK *idemix.IssuerKey + func (o *IssuerSecretKey) Bytes() ([]byte, error) + func (o *IssuerSecretKey) Public() handlers.IssuerPublicKey + type NymSignatureScheme struct + Idemix *idemix.Idemix + Translator idemix.Translator + func (n *NymSignatureScheme) Sign(sk *math.Zr, Nym *math.G1, RNym *math.Zr, ipk handlers.IssuerPublicKey, ...) (res []byte, err error) + func (n *NymSignatureScheme) Verify(ipk handlers.IssuerPublicKey, Nym *math.G1, signature, digest []byte) (err error) + type Revocation struct + Idemix *idemix.Idemix + Translator idemix.Translator + func (r *Revocation) NewKey() (*ecdsa.PrivateKey, error) + func (r *Revocation) NewKeyFromBytes(raw []byte) (*ecdsa.PrivateKey, error) + func (r *Revocation) Sign(key *ecdsa.PrivateKey, unrevokedHandles [][]byte, epoch int, ...) (res []byte, err error) + func (r *Revocation) Verify(pk *ecdsa.PublicKey, criRaw []byte, epoch int, alg bccsp.RevocationAlgorithm) (err error) + type SignatureScheme struct + Idemix *idemix.Idemix + Translator idemix.Translator + func (s *SignatureScheme) AuditNymEid(ipk handlers.IssuerPublicKey, eidIndex int, signature []byte, ...) (err error) + func (s *SignatureScheme) Sign(cred []byte, sk *math.Zr, Nym *math.G1, RNym *math.Zr, ...) (res []byte, meta *bccsp.IdemixSignerMetadata, err error) + func (s *SignatureScheme) Verify(ipk handlers.IssuerPublicKey, signature, digest []byte, ...) (err error) + type User struct + Idemix *idemix.Idemix + Translator idemix.Translator + func (u *User) MakeNym(sk *math.Zr, ipk handlers.IssuerPublicKey) (r1 *math.G1, r2 *math.Zr, err error) + func (u *User) NewKey() (res *math.Zr, err error) + func (u *User) NewKeyFromBytes(raw []byte) (res *math.Zr, err error) + func (u *User) NewNymFromBytes(raw []byte) (r1 *math.G1, r2 *math.Zr, err error) + func (u *User) NewPublicNymFromBytes(raw []byte) (res *math.G1, err error)