Versions in this module Expand all Collapse all v0 v0.0.1 Oct 21, 2022 Changes in this version + func NewIssuerPublicKey(pk IssuerPublicKey) *issuerPublicKey + func NewIssuerSecretKey(sk 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 Big interface + Bytes func() []byte + type CredRequest interface + Sign func(sk *math.Zr, ipk IssuerPublicKey, nonce []byte) ([]byte, error) + Verify func(credRequest []byte, ipk IssuerPublicKey, nonce []byte) error + type Credential interface + Sign func(key IssuerSecretKey, credentialRequest []byte, ...) ([]byte, error) + Verify func(sk *math.Zr, ipk IssuerPublicKey, credential []byte, ...) error + type CredentialRequestSigner struct + CredRequest CredRequest + func (c *CredentialRequestSigner) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) ([]byte, error) + type CredentialRequestVerifier struct + CredRequest CredRequest + func (c *CredentialRequestVerifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error) + type CredentialSigner struct + Credential Credential + func (s *CredentialSigner) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) (signature []byte, err error) + type CredentialVerifier struct + Credential Credential + func (v *CredentialVerifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (valid bool, err error) + type CriSigner struct + Revocation Revocation + func (s *CriSigner) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) ([]byte, error) + type CriVerifier struct + Revocation Revocation + func (v *CriVerifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error) + type Ecp interface + Bytes func() []byte + type Issuer interface + NewKey func(AttributeNames []string) (IssuerSecretKey, error) + NewKeyFromBytes func(raw []byte, attributes []string) (IssuerSecretKey, error) + NewPublicKeyFromBytes func(raw []byte, attributes []string) (IssuerPublicKey, error) + type IssuerKeyGen struct + Exportable bool + Issuer Issuer + func (g *IssuerKeyGen) KeyGen(opts bccsp.KeyGenOpts) (k bccsp.Key, err error) + type IssuerKeyImporter struct + Exportable bool + Issuer Issuer + func (i *IssuerKeyImporter) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error) + type IssuerPublicKey interface + Bytes func() ([]byte, error) + Hash func() []byte + type IssuerPublicKeyImporter struct + Issuer Issuer + func (i *IssuerPublicKeyImporter) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error) + type IssuerSecretKey interface + Bytes func() ([]byte, error) + Public func() IssuerPublicKey + type NymKeyDerivation struct + Exportable bool + Translator idemix.Translator + User 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 User + func (i *NymKeyImporter) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error) + type NymPublicKeyImporter struct + Translator idemix.Translator + User 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 NymSignatureScheme interface + Sign func(sk *math.Zr, Nym *math.G1, RNym *math.Zr, ipk IssuerPublicKey, digest []byte) ([]byte, error) + Verify func(pk IssuerPublicKey, Nym *math.G1, signature, digest []byte) error + type NymSigner struct + NymSignatureScheme NymSignatureScheme + func (s *NymSigner) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) ([]byte, error) + type NymVerifier struct + NymSignatureScheme NymSignatureScheme + func (v *NymVerifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error) + type Revocation interface + NewKey func() (*ecdsa.PrivateKey, error) + NewKeyFromBytes func(raw []byte) (*ecdsa.PrivateKey, error) + Sign func(key *ecdsa.PrivateKey, unrevokedHandles [][]byte, epoch int, ...) ([]byte, error) + Verify func(pk *ecdsa.PublicKey, cri []byte, epoch int, alg bccsp.RevocationAlgorithm) error + type RevocationKeyGen struct + Exportable bool + Revocation Revocation + func (g *RevocationKeyGen) KeyGen(opts bccsp.KeyGenOpts) (bccsp.Key, error) + type RevocationKeyImporter struct + Exportable bool + Revocation 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 SignatureScheme interface + AuditNymEid func(ipk IssuerPublicKey, eidIndex int, signature []byte, enrollmentID string, ...) error + Sign func(cred []byte, sk *math.Zr, Nym *math.G1, RNym *math.Zr, ipk IssuerPublicKey, ...) ([]byte, *bccsp.IdemixSignerMetadata, error) + Verify func(ipk IssuerPublicKey, signature, msg []byte, attributes []bccsp.IdemixAttribute, ...) error + type Signer struct + SignatureScheme SignatureScheme + func (s *Signer) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) ([]byte, error) + type User interface + MakeNym func(sk *math.Zr, key IssuerPublicKey) (*math.G1, *math.Zr, error) + NewKey func() (*math.Zr, error) + NewKeyFromBytes func(raw []byte) (*math.Zr, error) + NewNymFromBytes func(raw []byte) (*math.G1, *math.Zr, error) + NewPublicNymFromBytes func(raw []byte) (*math.G1, error) + type UserKeyGen struct + Exportable bool + User User + func (g *UserKeyGen) KeyGen(opts bccsp.KeyGenOpts) (bccsp.Key, error) + type UserKeyImporter struct + Exportable bool + User 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 SignatureScheme + func (v *Verifier) AuditNymEid(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)