Versions in this module Expand all Collapse all v1 v1.0.1 Mar 12, 2024 Changes in this version + func NewIssuerPublicKey(pk types.IssuerPublicKey) *issuerPublicKey + func NewIssuerSecretKey(sk types.IssuerSecretKey, exportable bool) *issuerSecretKey + func NewNymPublicKey(pk *math.G1, translator idemix.Translator) *nymPublicKey + func NewRevocationPublicKey(pubKey *ecdsa.PublicKey) *revocationPublicKey + func NewRevocationSecretKey(sk *ecdsa.PrivateKey, exportable bool) *revocationSecretKey + type BlindCredentialRequestSigner struct + CredRequest types.BlindCredRequest + func (c *BlindCredentialRequestSigner) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) ([]byte, error) + type BlindCredentialRequestVerifier struct + CredRequest types.BlindCredRequest + func (c *BlindCredentialRequestVerifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error) + type CredentialRequestSigner struct + CredRequest types.CredRequest + func (c *CredentialRequestSigner) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) ([]byte, error) + type CredentialRequestVerifier struct + CredRequest types.CredRequest + func (c *CredentialRequestVerifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error) + type CredentialSigner struct + Credential types.Credential + func (s *CredentialSigner) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) (signature []byte, err error) + type CredentialVerifier struct + Credential types.Credential + func (v *CredentialVerifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (valid bool, err error) + type CriSigner struct + Revocation types.Revocation + func (s *CriSigner) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) ([]byte, error) + type CriVerifier struct + Revocation types.Revocation + func (v *CriVerifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error) + type IssuerKeyGen struct + Exportable bool + Issuer types.Issuer + func (g *IssuerKeyGen) KeyGen(opts bccsp.KeyGenOpts) (k bccsp.Key, err error) + type IssuerKeyImporter struct + Exportable bool + Issuer types.Issuer + func (i *IssuerKeyImporter) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error) + type IssuerPublicKeyImporter struct + Issuer types.Issuer + func (i *IssuerPublicKeyImporter) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error) + type NymKeyDerivation struct + Exportable bool + Translator idemix.Translator + User types.User + func (kd *NymKeyDerivation) KeyDeriv(k bccsp.Key, opts bccsp.KeyDerivOpts) (dk bccsp.Key, err error) + type NymKeyImporter struct + Exportable bool + Translator idemix.Translator + User types.User + func (i *NymKeyImporter) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error) + type NymPublicKeyImporter struct + Translator idemix.Translator + User types.User + func (i *NymPublicKeyImporter) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error) + type NymSecretKey struct + Exportable bool + Pk *math.G1 + Sk *math.Zr + Ski []byte + Translator idemix.Translator + func NewNymSecretKey(sk *math.Zr, pk *math.G1, translator idemix.Translator, exportable bool) (*NymSecretKey, error) + func (*NymSecretKey) Private() bool + func (*NymSecretKey) Symmetric() bool + func (k *NymSecretKey) Bytes() ([]byte, error) + func (k *NymSecretKey) PublicKey() (bccsp.Key, error) + func (k *NymSecretKey) SKI() []byte + type NymSigner struct + NymSignatureScheme types.NymSignatureScheme + func (s *NymSigner) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) ([]byte, error) + type NymVerifier struct + NymSignatureScheme types.NymSignatureScheme + func (v *NymVerifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error) + type RevocationKeyGen struct + Exportable bool + Revocation types.Revocation + func (g *RevocationKeyGen) KeyGen(opts bccsp.KeyGenOpts) (bccsp.Key, error) + type RevocationKeyImporter struct + Exportable bool + Revocation types.Revocation + func (i *RevocationKeyImporter) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error) + type RevocationPublicKeyImporter struct + func (i *RevocationPublicKeyImporter) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error) + type Signer struct + SignatureScheme types.SignatureScheme + func (s *Signer) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) ([]byte, error) + type UserKeyGen struct + Exportable bool + User types.User + func (g *UserKeyGen) KeyGen(opts bccsp.KeyGenOpts) (bccsp.Key, error) + type UserKeyImporter struct + Exportable bool + User types.User + func (i *UserKeyImporter) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error) + type UserSecretKey struct + Exportable bool + Sk *math.Zr + func NewUserSecretKey(sk *math.Zr, exportable bool) *UserSecretKey + func (*UserSecretKey) Private() bool + func (*UserSecretKey) Symmetric() bool + func (k *UserSecretKey) Bytes() ([]byte, error) + func (k *UserSecretKey) PublicKey() (bccsp.Key, error) + func (k *UserSecretKey) SKI() []byte + type Verifier struct + SignatureScheme types.SignatureScheme + func (v *Verifier) AuditNymEid(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error) + func (v *Verifier) AuditNymRh(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error) + func (v *Verifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error)