Versions in this module Expand all Collapse all v0 v0.0.1 Oct 21, 2022 Changes in this version + type Big struct + BytesStub func() []byte + func (fake *Big) Bytes() []byte + func (fake *Big) BytesCallCount() int + func (fake *Big) BytesCalls(stub func() []byte) + func (fake *Big) BytesReturns(result1 []byte) + func (fake *Big) BytesReturnsOnCall(i int, result1 []byte) + func (fake *Big) Invocations() map[string][][]interface{} + type CredRequest struct + SignStub func(*math.Zr, handlers.IssuerPublicKey, []byte) ([]byte, error) + VerifyStub func([]byte, handlers.IssuerPublicKey, []byte) error + func (fake *CredRequest) Invocations() map[string][][]interface{} + func (fake *CredRequest) Sign(arg1 *math.Zr, arg2 handlers.IssuerPublicKey, arg3 []byte) ([]byte, error) + func (fake *CredRequest) SignArgsForCall(i int) (*math.Zr, handlers.IssuerPublicKey, []byte) + func (fake *CredRequest) SignCallCount() int + func (fake *CredRequest) SignCalls(stub func(*math.Zr, handlers.IssuerPublicKey, []byte) ([]byte, error)) + func (fake *CredRequest) SignReturns(result1 []byte, result2 error) + func (fake *CredRequest) SignReturnsOnCall(i int, result1 []byte, result2 error) + func (fake *CredRequest) Verify(arg1 []byte, arg2 handlers.IssuerPublicKey, arg3 []byte) error + func (fake *CredRequest) VerifyArgsForCall(i int) ([]byte, handlers.IssuerPublicKey, []byte) + func (fake *CredRequest) VerifyCallCount() int + func (fake *CredRequest) VerifyCalls(stub func([]byte, handlers.IssuerPublicKey, []byte) error) + func (fake *CredRequest) VerifyReturns(result1 error) + func (fake *CredRequest) VerifyReturnsOnCall(i int, result1 error) + type Credential struct + SignStub func(handlers.IssuerSecretKey, []byte, []idemix.IdemixAttribute) ([]byte, error) + VerifyStub func(*math.Zr, handlers.IssuerPublicKey, []byte, []idemix.IdemixAttribute) error + func (fake *Credential) Invocations() map[string][][]interface{} + func (fake *Credential) Sign(arg1 handlers.IssuerSecretKey, arg2 []byte, arg3 []idemix.IdemixAttribute) ([]byte, error) + func (fake *Credential) SignArgsForCall(i int) (handlers.IssuerSecretKey, []byte, []idemix.IdemixAttribute) + func (fake *Credential) SignCallCount() int + func (fake *Credential) SignCalls(...) + func (fake *Credential) SignReturns(result1 []byte, result2 error) + func (fake *Credential) SignReturnsOnCall(i int, result1 []byte, result2 error) + func (fake *Credential) Verify(arg1 *math.Zr, arg2 handlers.IssuerPublicKey, arg3 []byte, ...) error + func (fake *Credential) VerifyArgsForCall(i int) (*math.Zr, handlers.IssuerPublicKey, []byte, []idemix.IdemixAttribute) + func (fake *Credential) VerifyCallCount() int + func (fake *Credential) VerifyCalls(...) + func (fake *Credential) VerifyReturns(result1 error) + func (fake *Credential) VerifyReturnsOnCall(i int, result1 error) + type Ecp struct + BytesStub func() []byte + func (fake *Ecp) Bytes() []byte + func (fake *Ecp) BytesCallCount() int + func (fake *Ecp) BytesCalls(stub func() []byte) + func (fake *Ecp) BytesReturns(result1 []byte) + func (fake *Ecp) BytesReturnsOnCall(i int, result1 []byte) + func (fake *Ecp) Invocations() map[string][][]interface{} + type Issuer struct + NewKeyFromBytesStub func([]byte, []string) (handlers.IssuerSecretKey, error) + NewKeyStub func([]string) (handlers.IssuerSecretKey, error) + NewPublicKeyFromBytesStub func([]byte, []string) (handlers.IssuerPublicKey, error) + func (fake *Issuer) Invocations() map[string][][]interface{} + func (fake *Issuer) NewKey(arg1 []string) (handlers.IssuerSecretKey, error) + func (fake *Issuer) NewKeyArgsForCall(i int) []string + func (fake *Issuer) NewKeyCallCount() int + func (fake *Issuer) NewKeyCalls(stub func([]string) (handlers.IssuerSecretKey, error)) + func (fake *Issuer) NewKeyFromBytes(arg1 []byte, arg2 []string) (handlers.IssuerSecretKey, error) + func (fake *Issuer) NewKeyFromBytesArgsForCall(i int) ([]byte, []string) + func (fake *Issuer) NewKeyFromBytesCallCount() int + func (fake *Issuer) NewKeyFromBytesCalls(stub func([]byte, []string) (handlers.IssuerSecretKey, error)) + func (fake *Issuer) NewKeyFromBytesReturns(result1 handlers.IssuerSecretKey, result2 error) + func (fake *Issuer) NewKeyFromBytesReturnsOnCall(i int, result1 handlers.IssuerSecretKey, result2 error) + func (fake *Issuer) NewKeyReturns(result1 handlers.IssuerSecretKey, result2 error) + func (fake *Issuer) NewKeyReturnsOnCall(i int, result1 handlers.IssuerSecretKey, result2 error) + func (fake *Issuer) NewPublicKeyFromBytes(arg1 []byte, arg2 []string) (handlers.IssuerPublicKey, error) + func (fake *Issuer) NewPublicKeyFromBytesArgsForCall(i int) ([]byte, []string) + func (fake *Issuer) NewPublicKeyFromBytesCallCount() int + func (fake *Issuer) NewPublicKeyFromBytesCalls(stub func([]byte, []string) (handlers.IssuerPublicKey, error)) + func (fake *Issuer) NewPublicKeyFromBytesReturns(result1 handlers.IssuerPublicKey, result2 error) + func (fake *Issuer) NewPublicKeyFromBytesReturnsOnCall(i int, result1 handlers.IssuerPublicKey, result2 error) + type IssuerPublicKey struct + BytesStub func() ([]byte, error) + HashStub func() []byte + func (fake *IssuerPublicKey) Bytes() ([]byte, error) + func (fake *IssuerPublicKey) BytesCallCount() int + func (fake *IssuerPublicKey) BytesCalls(stub func() ([]byte, error)) + func (fake *IssuerPublicKey) BytesReturns(result1 []byte, result2 error) + func (fake *IssuerPublicKey) BytesReturnsOnCall(i int, result1 []byte, result2 error) + func (fake *IssuerPublicKey) Hash() []byte + func (fake *IssuerPublicKey) HashCallCount() int + func (fake *IssuerPublicKey) HashCalls(stub func() []byte) + func (fake *IssuerPublicKey) HashReturns(result1 []byte) + func (fake *IssuerPublicKey) HashReturnsOnCall(i int, result1 []byte) + func (fake *IssuerPublicKey) Invocations() map[string][][]interface{} + type IssuerSecretKey struct + BytesStub func() ([]byte, error) + PublicStub func() handlers.IssuerPublicKey + func (fake *IssuerSecretKey) Bytes() ([]byte, error) + func (fake *IssuerSecretKey) BytesCallCount() int + func (fake *IssuerSecretKey) BytesCalls(stub func() ([]byte, error)) + func (fake *IssuerSecretKey) BytesReturns(result1 []byte, result2 error) + func (fake *IssuerSecretKey) BytesReturnsOnCall(i int, result1 []byte, result2 error) + func (fake *IssuerSecretKey) Invocations() map[string][][]interface{} + func (fake *IssuerSecretKey) Public() handlers.IssuerPublicKey + func (fake *IssuerSecretKey) PublicCallCount() int + func (fake *IssuerSecretKey) PublicCalls(stub func() handlers.IssuerPublicKey) + func (fake *IssuerSecretKey) PublicReturns(result1 handlers.IssuerPublicKey) + func (fake *IssuerSecretKey) PublicReturnsOnCall(i int, result1 handlers.IssuerPublicKey) + type NymSignatureScheme struct + SignStub func(*math.Zr, *math.G1, *math.Zr, handlers.IssuerPublicKey, []byte) ([]byte, error) + VerifyStub func(handlers.IssuerPublicKey, *math.G1, []byte, []byte) error + func (fake *NymSignatureScheme) Invocations() map[string][][]interface{} + func (fake *NymSignatureScheme) Sign(arg1 *math.Zr, arg2 *math.G1, arg3 *math.Zr, arg4 handlers.IssuerPublicKey, ...) ([]byte, error) + func (fake *NymSignatureScheme) SignArgsForCall(i int) (*math.Zr, *math.G1, *math.Zr, handlers.IssuerPublicKey, []byte) + func (fake *NymSignatureScheme) SignCallCount() int + func (fake *NymSignatureScheme) SignCalls(...) + func (fake *NymSignatureScheme) SignReturns(result1 []byte, result2 error) + func (fake *NymSignatureScheme) SignReturnsOnCall(i int, result1 []byte, result2 error) + func (fake *NymSignatureScheme) Verify(arg1 handlers.IssuerPublicKey, arg2 *math.G1, arg3 []byte, arg4 []byte) error + func (fake *NymSignatureScheme) VerifyArgsForCall(i int) (handlers.IssuerPublicKey, *math.G1, []byte, []byte) + func (fake *NymSignatureScheme) VerifyCallCount() int + func (fake *NymSignatureScheme) VerifyCalls(stub func(handlers.IssuerPublicKey, *math.G1, []byte, []byte) error) + func (fake *NymSignatureScheme) VerifyReturns(result1 error) + func (fake *NymSignatureScheme) VerifyReturnsOnCall(i int, result1 error) + type Revocation struct + NewKeyFromBytesStub func([]byte) (*ecdsa.PrivateKey, error) + NewKeyStub func() (*ecdsa.PrivateKey, error) + SignStub func(*ecdsa.PrivateKey, [][]byte, int, idemix.RevocationAlgorithm) ([]byte, error) + VerifyStub func(*ecdsa.PublicKey, []byte, int, idemix.RevocationAlgorithm) error + func (fake *Revocation) Invocations() map[string][][]interface{} + func (fake *Revocation) NewKey() (*ecdsa.PrivateKey, error) + func (fake *Revocation) NewKeyCallCount() int + func (fake *Revocation) NewKeyCalls(stub func() (*ecdsa.PrivateKey, error)) + func (fake *Revocation) NewKeyFromBytes(arg1 []byte) (*ecdsa.PrivateKey, error) + func (fake *Revocation) NewKeyFromBytesArgsForCall(i int) []byte + func (fake *Revocation) NewKeyFromBytesCallCount() int + func (fake *Revocation) NewKeyFromBytesCalls(stub func([]byte) (*ecdsa.PrivateKey, error)) + func (fake *Revocation) NewKeyFromBytesReturns(result1 *ecdsa.PrivateKey, result2 error) + func (fake *Revocation) NewKeyFromBytesReturnsOnCall(i int, result1 *ecdsa.PrivateKey, result2 error) + func (fake *Revocation) NewKeyReturns(result1 *ecdsa.PrivateKey, result2 error) + func (fake *Revocation) NewKeyReturnsOnCall(i int, result1 *ecdsa.PrivateKey, result2 error) + func (fake *Revocation) Sign(arg1 *ecdsa.PrivateKey, arg2 [][]byte, arg3 int, ...) ([]byte, error) + func (fake *Revocation) SignArgsForCall(i int) (*ecdsa.PrivateKey, [][]byte, int, idemix.RevocationAlgorithm) + func (fake *Revocation) SignCallCount() int + func (fake *Revocation) SignCalls(...) + func (fake *Revocation) SignReturns(result1 []byte, result2 error) + func (fake *Revocation) SignReturnsOnCall(i int, result1 []byte, result2 error) + func (fake *Revocation) Verify(arg1 *ecdsa.PublicKey, arg2 []byte, arg3 int, arg4 idemix.RevocationAlgorithm) error + func (fake *Revocation) VerifyArgsForCall(i int) (*ecdsa.PublicKey, []byte, int, idemix.RevocationAlgorithm) + func (fake *Revocation) VerifyCallCount() int + func (fake *Revocation) VerifyCalls(stub func(*ecdsa.PublicKey, []byte, int, idemix.RevocationAlgorithm) error) + func (fake *Revocation) VerifyReturns(result1 error) + func (fake *Revocation) VerifyReturnsOnCall(i int, result1 error) + type SignatureScheme struct + AuditNymEidStub func(ipk handlers.IssuerPublicKey, eidIndex int, signature []byte, ...) error + SignStub func(cred []byte, sk *math.Zr, Nym *math.G1, RNym *math.Zr, ...) ([]byte, *bccsp.IdemixSignerMetadata, error) + VerifyStub func(ipk handlers.IssuerPublicKey, signature, msg []byte, ...) error + func (fake *SignatureScheme) AuditNymEid(ipk handlers.IssuerPublicKey, eidIndex int, signature []byte, ...) error + func (fake *SignatureScheme) AuditNymEidArgsForCall(i int) (handlers.IssuerPublicKey, int, []byte, string, *math.Zr, ...) + func (fake *SignatureScheme) AuditNymEidCallCount() int + func (fake *SignatureScheme) AuditNymEidReturns(result1 error) + func (fake *SignatureScheme) AuditNymEidReturnsOnCall(i int, result1 error) + func (fake *SignatureScheme) Invocations() map[string][][]interface{} + func (fake *SignatureScheme) Sign(cred []byte, sk *math.Zr, Nym *math.G1, RNym *math.Zr, ...) ([]byte, *bccsp.IdemixSignerMetadata, error) + func (fake *SignatureScheme) SignArgsForCall(i int) ([]byte, *math.Zr, *math.G1, *math.Zr, handlers.IssuerPublicKey, ...) + func (fake *SignatureScheme) SignCallCount() int + func (fake *SignatureScheme) SignReturns(result1 []byte, result2 *bccsp.IdemixSignerMetadata, result3 error) + func (fake *SignatureScheme) SignReturnsOnCall(i int, result1 []byte, result2 *bccsp.IdemixSignerMetadata, result3 error) + func (fake *SignatureScheme) Verify(ipk handlers.IssuerPublicKey, signature []byte, msg []byte, ...) error + func (fake *SignatureScheme) VerifyArgsForCall(i int) (handlers.IssuerPublicKey, []byte, []byte, []bccsp.IdemixAttribute, int, int, ...) + func (fake *SignatureScheme) VerifyCallCount() int + func (fake *SignatureScheme) VerifyReturns(result1 error) + func (fake *SignatureScheme) VerifyReturnsOnCall(i int, result1 error) + type User struct + MakeNymStub func(*math.Zr, handlers.IssuerPublicKey) (*math.G1, *math.Zr, error) + NewKeyFromBytesStub func([]byte) (*math.Zr, error) + NewKeyStub func() (*math.Zr, error) + NewNymFromBytesStub func([]byte) (*math.G1, *math.Zr, error) + NewPublicNymFromBytesStub func([]byte) (*math.G1, error) + func (fake *User) Invocations() map[string][][]interface{} + func (fake *User) MakeNym(arg1 *math.Zr, arg2 handlers.IssuerPublicKey) (*math.G1, *math.Zr, error) + func (fake *User) MakeNymArgsForCall(i int) (*math.Zr, handlers.IssuerPublicKey) + func (fake *User) MakeNymCallCount() int + func (fake *User) MakeNymCalls(stub func(*math.Zr, handlers.IssuerPublicKey) (*math.G1, *math.Zr, error)) + func (fake *User) MakeNymReturns(result1 *math.G1, result2 *math.Zr, result3 error) + func (fake *User) MakeNymReturnsOnCall(i int, result1 *math.G1, result2 *math.Zr, result3 error) + func (fake *User) NewKey() (*math.Zr, error) + func (fake *User) NewKeyCallCount() int + func (fake *User) NewKeyCalls(stub func() (*math.Zr, error)) + func (fake *User) NewKeyFromBytes(arg1 []byte) (*math.Zr, error) + func (fake *User) NewKeyFromBytesArgsForCall(i int) []byte + func (fake *User) NewKeyFromBytesCallCount() int + func (fake *User) NewKeyFromBytesCalls(stub func([]byte) (*math.Zr, error)) + func (fake *User) NewKeyFromBytesReturns(result1 *math.Zr, result2 error) + func (fake *User) NewKeyFromBytesReturnsOnCall(i int, result1 *math.Zr, result2 error) + func (fake *User) NewKeyReturns(result1 *math.Zr, result2 error) + func (fake *User) NewKeyReturnsOnCall(i int, result1 *math.Zr, result2 error) + func (fake *User) NewNymFromBytes(arg1 []byte) (*math.G1, *math.Zr, error) + func (fake *User) NewNymFromBytesArgsForCall(i int) []byte + func (fake *User) NewNymFromBytesCallCount() int + func (fake *User) NewNymFromBytesCalls(stub func([]byte) (*math.G1, *math.Zr, error)) + func (fake *User) NewNymFromBytesReturns(result1 *math.G1, result2 *math.Zr, result3 error) + func (fake *User) NewNymFromBytesReturnsOnCall(i int, result1 *math.G1, result2 *math.Zr, result3 error) + func (fake *User) NewPublicNymFromBytes(arg1 []byte) (*math.G1, error) + func (fake *User) NewPublicNymFromBytesArgsForCall(i int) []byte + func (fake *User) NewPublicNymFromBytesCallCount() int + func (fake *User) NewPublicNymFromBytesCalls(stub func([]byte) (*math.G1, error)) + func (fake *User) NewPublicNymFromBytesReturns(result1 *math.G1, result2 error) + func (fake *User) NewPublicNymFromBytesReturnsOnCall(i int, result1 *math.G1, result2 error)