Versions in this module Expand all Collapse all v1 v1.4.9 Jul 22, 2021 Changes in this version + func NewIssuerPublicKey(pk IssuerPublicKey) *issuerPublicKey + func NewIssuerSecretKey(sk IssuerSecretKey, exportable bool) *issuerSecretKey + func NewNymPublicKey(pk Ecp) *nymPublicKey + func NewNymSecretKey(sk Big, pk Ecp, exportable bool) (*nymSecretKey, error) + func NewRevocationPublicKey(pubKey *ecdsa.PublicKey) *revocationPublicKey + func NewRevocationSecretKey(sk *ecdsa.PrivateKey, exportable bool) *revocationSecretKey + func NewUserSecretKey(sk Big, exportable bool) *userSecretKey + type Big interface + Bytes func() ([]byte, error) + type CredRequest interface + Sign func(sk Big, 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 Big, 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, error) + type Issuer interface + NewKey func(AttributeNames []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 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 + User User + func (kd *NymKeyDerivation) KeyDeriv(k bccsp.Key, opts bccsp.KeyDerivOpts) (dk bccsp.Key, err error) + type NymPublicKeyImporter struct + User User + func (i *NymPublicKeyImporter) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error) + type NymSignatureScheme interface + Sign func(sk Big, Nym Ecp, RNym Big, ipk IssuerPublicKey, digest []byte) ([]byte, error) + Verify func(pk IssuerPublicKey, Nym Ecp, 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) + 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 RevocationPublicKeyImporter struct + func (i *RevocationPublicKeyImporter) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error) + type SignatureScheme interface + Sign func(cred []byte, sk Big, Nym Ecp, RNym Big, ipk IssuerPublicKey, ...) ([]byte, 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 Big, key IssuerPublicKey) (Ecp, Big, error) + NewKey func() (Big, error) + NewKeyFromBytes func(raw []byte) (Big, error) + NewPublicNymFromBytes func(raw []byte) (Ecp, 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 Verifier struct + SignatureScheme SignatureScheme + func (v *Verifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error)