mock

package
v0.0.0-...-addfb21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Big

type Big struct {
	BytesStub func() ([]byte, error)
	// contains filtered or unexported fields
}

func (*Big) Bytes

func (fake *Big) Bytes() ([]byte, error)

func (*Big) BytesCallCount

func (fake *Big) BytesCallCount() int

func (*Big) BytesReturns

func (fake *Big) BytesReturns(result1 []byte, result2 error)

func (*Big) BytesReturnsOnCall

func (fake *Big) BytesReturnsOnCall(i int, result1 []byte, result2 error)

func (*Big) Invocations

func (fake *Big) Invocations() map[string][][]interface{}

type CredRequest

type CredRequest struct {
	SignStub func(sk handlers.Big, ipk handlers.IssuerPublicKey, nonce []byte) ([]byte, error)

	VerifyStub func(credRequest []byte, ipk handlers.IssuerPublicKey, nonce []byte) error
	// contains filtered or unexported fields
}

func (*CredRequest) Invocations

func (fake *CredRequest) Invocations() map[string][][]interface{}

func (*CredRequest) Sign

func (fake *CredRequest) Sign(sk handlers.Big, ipk handlers.IssuerPublicKey, nonce []byte) ([]byte, error)

func (*CredRequest) SignArgsForCall

func (fake *CredRequest) SignArgsForCall(i int) (handlers.Big, handlers.IssuerPublicKey, []byte)

func (*CredRequest) SignCallCount

func (fake *CredRequest) SignCallCount() int

func (*CredRequest) SignReturns

func (fake *CredRequest) SignReturns(result1 []byte, result2 error)

func (*CredRequest) SignReturnsOnCall

func (fake *CredRequest) SignReturnsOnCall(i int, result1 []byte, result2 error)

func (*CredRequest) Verify

func (fake *CredRequest) Verify(credRequest []byte, ipk handlers.IssuerPublicKey, nonce []byte) error

func (*CredRequest) VerifyArgsForCall

func (fake *CredRequest) VerifyArgsForCall(i int) ([]byte, handlers.IssuerPublicKey, []byte)

func (*CredRequest) VerifyCallCount

func (fake *CredRequest) VerifyCallCount() int

func (*CredRequest) VerifyReturns

func (fake *CredRequest) VerifyReturns(result1 error)

func (*CredRequest) VerifyReturnsOnCall

func (fake *CredRequest) VerifyReturnsOnCall(i int, result1 error)

type Credential

type Credential struct {
	SignStub func(key handlers.IssuerSecretKey, credentialRequest []byte, attributes []bccsp.IdemixAttribute) ([]byte, error)

	VerifyStub func(sk handlers.Big, ipk handlers.IssuerPublicKey, credential []byte, attributes []bccsp.IdemixAttribute) error
	// contains filtered or unexported fields
}

func (*Credential) Invocations

func (fake *Credential) Invocations() map[string][][]interface{}

func (*Credential) Sign

func (fake *Credential) Sign(key handlers.IssuerSecretKey, credentialRequest []byte, attributes []bccsp.IdemixAttribute) ([]byte, error)

func (*Credential) SignArgsForCall

func (fake *Credential) SignArgsForCall(i int) (handlers.IssuerSecretKey, []byte, []bccsp.IdemixAttribute)

func (*Credential) SignCallCount

func (fake *Credential) SignCallCount() int

func (*Credential) SignReturns

func (fake *Credential) SignReturns(result1 []byte, result2 error)

func (*Credential) SignReturnsOnCall

func (fake *Credential) SignReturnsOnCall(i int, result1 []byte, result2 error)

func (*Credential) Verify

func (fake *Credential) Verify(sk handlers.Big, ipk handlers.IssuerPublicKey, credential []byte, attributes []bccsp.IdemixAttribute) error

func (*Credential) VerifyArgsForCall

func (fake *Credential) VerifyArgsForCall(i int) (handlers.Big, handlers.IssuerPublicKey, []byte, []bccsp.IdemixAttribute)

func (*Credential) VerifyCallCount

func (fake *Credential) VerifyCallCount() int

func (*Credential) VerifyReturns

func (fake *Credential) VerifyReturns(result1 error)

func (*Credential) VerifyReturnsOnCall

func (fake *Credential) VerifyReturnsOnCall(i int, result1 error)

type Ecp

type Ecp struct {
	BytesStub func() ([]byte, error)
	// contains filtered or unexported fields
}

func (*Ecp) Bytes

func (fake *Ecp) Bytes() ([]byte, error)

func (*Ecp) BytesCallCount

func (fake *Ecp) BytesCallCount() int

func (*Ecp) BytesReturns

func (fake *Ecp) BytesReturns(result1 []byte, result2 error)

func (*Ecp) BytesReturnsOnCall

func (fake *Ecp) BytesReturnsOnCall(i int, result1 []byte, result2 error)

func (*Ecp) Invocations

func (fake *Ecp) Invocations() map[string][][]interface{}

type Issuer

type Issuer struct {
	NewKeyStub func(AttributeNames []string) (handlers.IssuerSecretKey, error)

	NewPublicKeyFromBytesStub func(raw []byte, attributes []string) (handlers.IssuerPublicKey, error)
	// contains filtered or unexported fields
}

func (*Issuer) Invocations

func (fake *Issuer) Invocations() map[string][][]interface{}

func (*Issuer) NewKey

func (fake *Issuer) NewKey(AttributeNames []string) (handlers.IssuerSecretKey, error)

func (*Issuer) NewKeyArgsForCall

func (fake *Issuer) NewKeyArgsForCall(i int) []string

func (*Issuer) NewKeyCallCount

func (fake *Issuer) NewKeyCallCount() int

func (*Issuer) NewKeyReturns

func (fake *Issuer) NewKeyReturns(result1 handlers.IssuerSecretKey, result2 error)

func (*Issuer) NewKeyReturnsOnCall

func (fake *Issuer) NewKeyReturnsOnCall(i int, result1 handlers.IssuerSecretKey, result2 error)

func (*Issuer) NewPublicKeyFromBytes

func (fake *Issuer) NewPublicKeyFromBytes(raw []byte, attributes []string) (handlers.IssuerPublicKey, error)

func (*Issuer) NewPublicKeyFromBytesArgsForCall

func (fake *Issuer) NewPublicKeyFromBytesArgsForCall(i int) ([]byte, []string)

func (*Issuer) NewPublicKeyFromBytesCallCount

func (fake *Issuer) NewPublicKeyFromBytesCallCount() int

func (*Issuer) NewPublicKeyFromBytesReturns

func (fake *Issuer) NewPublicKeyFromBytesReturns(result1 handlers.IssuerPublicKey, result2 error)

func (*Issuer) NewPublicKeyFromBytesReturnsOnCall

func (fake *Issuer) NewPublicKeyFromBytesReturnsOnCall(i int, result1 handlers.IssuerPublicKey, result2 error)

type IssuerPublicKey

type IssuerPublicKey struct {
	BytesStub func() ([]byte, error)

	HashStub func() []byte
	// contains filtered or unexported fields
}

func (*IssuerPublicKey) Bytes

func (fake *IssuerPublicKey) Bytes() ([]byte, error)

func (*IssuerPublicKey) BytesCallCount

func (fake *IssuerPublicKey) BytesCallCount() int

func (*IssuerPublicKey) BytesReturns

func (fake *IssuerPublicKey) BytesReturns(result1 []byte, result2 error)

func (*IssuerPublicKey) BytesReturnsOnCall

func (fake *IssuerPublicKey) BytesReturnsOnCall(i int, result1 []byte, result2 error)

func (*IssuerPublicKey) Hash

func (fake *IssuerPublicKey) Hash() []byte

func (*IssuerPublicKey) HashCallCount

func (fake *IssuerPublicKey) HashCallCount() int

func (*IssuerPublicKey) HashReturns

func (fake *IssuerPublicKey) HashReturns(result1 []byte)

func (*IssuerPublicKey) HashReturnsOnCall

func (fake *IssuerPublicKey) HashReturnsOnCall(i int, result1 []byte)

func (*IssuerPublicKey) Invocations

func (fake *IssuerPublicKey) Invocations() map[string][][]interface{}

type IssuerSecretKey

type IssuerSecretKey struct {
	BytesStub func() ([]byte, error)

	PublicStub func() handlers.IssuerPublicKey
	// contains filtered or unexported fields
}

func (*IssuerSecretKey) Bytes

func (fake *IssuerSecretKey) Bytes() ([]byte, error)

func (*IssuerSecretKey) BytesCallCount

func (fake *IssuerSecretKey) BytesCallCount() int

func (*IssuerSecretKey) BytesReturns

func (fake *IssuerSecretKey) BytesReturns(result1 []byte, result2 error)

func (*IssuerSecretKey) BytesReturnsOnCall

func (fake *IssuerSecretKey) BytesReturnsOnCall(i int, result1 []byte, result2 error)

func (*IssuerSecretKey) Invocations

func (fake *IssuerSecretKey) Invocations() map[string][][]interface{}

func (*IssuerSecretKey) Public

func (fake *IssuerSecretKey) Public() handlers.IssuerPublicKey

func (*IssuerSecretKey) PublicCallCount

func (fake *IssuerSecretKey) PublicCallCount() int

func (*IssuerSecretKey) PublicReturns

func (fake *IssuerSecretKey) PublicReturns(result1 handlers.IssuerPublicKey)

func (*IssuerSecretKey) PublicReturnsOnCall

func (fake *IssuerSecretKey) PublicReturnsOnCall(i int, result1 handlers.IssuerPublicKey)

type NymSignatureScheme

type NymSignatureScheme struct {
	SignStub func(sk handlers.Big, Nym handlers.Ecp, RNym handlers.Big, ipk handlers.IssuerPublicKey, digest []byte) ([]byte, error)

	VerifyStub func(pk handlers.IssuerPublicKey, Nym handlers.Ecp, signature, digest []byte) error
	// contains filtered or unexported fields
}

func (*NymSignatureScheme) Invocations

func (fake *NymSignatureScheme) Invocations() map[string][][]interface{}

func (*NymSignatureScheme) Sign

func (fake *NymSignatureScheme) Sign(sk handlers.Big, Nym handlers.Ecp, RNym handlers.Big, ipk handlers.IssuerPublicKey, digest []byte) ([]byte, error)

func (*NymSignatureScheme) SignArgsForCall

func (*NymSignatureScheme) SignCallCount

func (fake *NymSignatureScheme) SignCallCount() int

func (*NymSignatureScheme) SignReturns

func (fake *NymSignatureScheme) SignReturns(result1 []byte, result2 error)

func (*NymSignatureScheme) SignReturnsOnCall

func (fake *NymSignatureScheme) SignReturnsOnCall(i int, result1 []byte, result2 error)

func (*NymSignatureScheme) Verify

func (fake *NymSignatureScheme) Verify(pk handlers.IssuerPublicKey, Nym handlers.Ecp, signature []byte, digest []byte) error

func (*NymSignatureScheme) VerifyArgsForCall

func (fake *NymSignatureScheme) VerifyArgsForCall(i int) (handlers.IssuerPublicKey, handlers.Ecp, []byte, []byte)

func (*NymSignatureScheme) VerifyCallCount

func (fake *NymSignatureScheme) VerifyCallCount() int

func (*NymSignatureScheme) VerifyReturns

func (fake *NymSignatureScheme) VerifyReturns(result1 error)

func (*NymSignatureScheme) VerifyReturnsOnCall

func (fake *NymSignatureScheme) VerifyReturnsOnCall(i int, result1 error)

type Revocation

type Revocation struct {
	NewKeyStub func() (*sm2.PrivateKey, error)

	SignStub func(key *sm2.PrivateKey, unrevokedHandles [][]byte, epoch int, alg bccsp.RevocationAlgorithm) ([]byte, error)

	VerifyStub func(pk *sm2.PublicKey, cri []byte, epoch int, alg bccsp.RevocationAlgorithm) error
	// contains filtered or unexported fields
}

func (*Revocation) Invocations

func (fake *Revocation) Invocations() map[string][][]interface{}

func (*Revocation) NewKey

func (fake *Revocation) NewKey() (*sm2.PrivateKey, error)

func (*Revocation) NewKeyCallCount

func (fake *Revocation) NewKeyCallCount() int

func (*Revocation) NewKeyReturns

func (fake *Revocation) NewKeyReturns(result1 *sm2.PrivateKey, result2 error)

func (*Revocation) NewKeyReturnsOnCall

func (fake *Revocation) NewKeyReturnsOnCall(i int, result1 *sm2.PrivateKey, result2 error)

func (*Revocation) Sign

func (fake *Revocation) Sign(key *sm2.PrivateKey, unrevokedHandles [][]byte, epoch int, alg bccsp.RevocationAlgorithm) ([]byte, error)

func (*Revocation) SignArgsForCall

func (fake *Revocation) SignArgsForCall(i int) (*sm2.PrivateKey, [][]byte, int, bccsp.RevocationAlgorithm)

func (*Revocation) SignCallCount

func (fake *Revocation) SignCallCount() int

func (*Revocation) SignReturns

func (fake *Revocation) SignReturns(result1 []byte, result2 error)

func (*Revocation) SignReturnsOnCall

func (fake *Revocation) SignReturnsOnCall(i int, result1 []byte, result2 error)

func (*Revocation) Verify

func (fake *Revocation) Verify(pk *sm2.PublicKey, cri []byte, epoch int, alg bccsp.RevocationAlgorithm) error

func (*Revocation) VerifyArgsForCall

func (fake *Revocation) VerifyArgsForCall(i int) (*sm2.PublicKey, []byte, int, bccsp.RevocationAlgorithm)

func (*Revocation) VerifyCallCount

func (fake *Revocation) VerifyCallCount() int

func (*Revocation) VerifyReturns

func (fake *Revocation) VerifyReturns(result1 error)

func (*Revocation) VerifyReturnsOnCall

func (fake *Revocation) VerifyReturnsOnCall(i int, result1 error)

type SignatureScheme

type SignatureScheme struct {
	SignStub func(cred []byte, sk handlers.Big, Nym handlers.Ecp, RNym handlers.Big, ipk handlers.IssuerPublicKey, attributes []bccsp.IdemixAttribute, msg []byte, rhIndex int, cri []byte) ([]byte, error)

	VerifyStub func(pk handlers.IssuerPublicKey, signature, digest []byte, attributes []bccsp.IdemixAttribute, hIndex int, revocationPublicKey *sm2.PublicKey, epoch int) error
	// contains filtered or unexported fields
}
type SignatureScheme struct {
	SignStub        func(cred []byte, sk handlers.Big, Nym handlers.Ecp, RNym handlers.Big, ipk handlers.IssuerPublicKey, attributes []bccsp.IdemixAttribute, msg []byte, rhIndex int, cri []byte) ([]byte, error)
	signMutex       sync.RWMutex
	signArgsForCall []struct {
		cred       []byte
		sk         handlers.Big
		Nym        handlers.Ecp
		RNym       handlers.Big
		ipk        handlers.IssuerPublicKey
		attributes []bccsp.IdemixAttribute
		msg        []byte
		rhIndex    int
		cri        []byte
	}
	signReturns struct {
		result1 []byte
		result2 error
	}
	signReturnsOnCall map[int]struct {
		result1 []byte
		result2 error
	}
	VerifyStub        func(pk handlers.IssuerPublicKey, signature, digest []byte, attributes []bccsp.IdemixAttribute, hIndex int, revocationPublicKey *ecdsa.PublicKey, epoch int) error
	verifyMutex       sync.RWMutex
	verifyArgsForCall []struct {
		pk                  handlers.IssuerPublicKey
		signature           []byte
		digest              []byte
		attributes          []bccsp.IdemixAttribute
		hIndex              int
		revocationPublicKey *ecdsa.PublicKey
		epoch               int
	}
	verifyReturns struct {
		result1 error
	}
	verifyReturnsOnCall map[int]struct {
		result1 error
	}
	invocations      map[string][][]interface{}
	invocationsMutex sync.RWMutex
}
func (fake *SignatureScheme) Sign(cred []byte, sk handlers.Big, Nym handlers.Ecp, RNym handlers.Big, ipk handlers.IssuerPublicKey, attributes []bccsp.IdemixAttribute, msg []byte, rhIndex int, cri []byte) ([]byte, error) {
	var credCopy []byte
	if cred != nil {
		credCopy = make([]byte, len(cred))
		copy(credCopy, cred)
	}
	var attributesCopy []bccsp.IdemixAttribute
	if attributes != nil {
		attributesCopy = make([]bccsp.IdemixAttribute, len(attributes))
		copy(attributesCopy, attributes)
	}
	var msgCopy []byte
	if msg != nil {
		msgCopy = make([]byte, len(msg))
		copy(msgCopy, msg)
	}
	var criCopy []byte
	if cri != nil {
		criCopy = make([]byte, len(cri))
		copy(criCopy, cri)
	}
	fake.signMutex.Lock()
	ret, specificReturn := fake.signReturnsOnCall[len(fake.signArgsForCall)]
	fake.signArgsForCall = append(fake.signArgsForCall, struct {
		cred       []byte
		sk         handlers.Big
		Nym        handlers.Ecp
		RNym       handlers.Big
		ipk        handlers.IssuerPublicKey
		attributes []bccsp.IdemixAttribute
		msg        []byte
		rhIndex    int
		cri        []byte
	}{credCopy, sk, Nym, RNym, ipk, attributesCopy, msgCopy, rhIndex, criCopy})
	fake.recordInvocation("Sign", []interface{}{credCopy, sk, Nym, RNym, ipk, attributesCopy, msgCopy, rhIndex, criCopy})
	fake.signMutex.Unlock()
	if fake.SignStub != nil {
		return fake.SignStub(cred, sk, Nym, RNym, ipk, attributes, msg, rhIndex, cri)
	}
	if specificReturn {
		return ret.result1, ret.result2
	}
	return fake.signReturns.result1, fake.signReturns.result2
}
func (fake *SignatureScheme) SignCallCount() int {
	fake.signMutex.RLock()
	defer fake.signMutex.RUnlock()
	return len(fake.signArgsForCall)
}
func (fake *SignatureScheme) SignArgsForCall(i int) ([]byte, handlers.Big, handlers.Ecp, handlers.Big, handlers.IssuerPublicKey, []bccsp.IdemixAttribute, []byte, int, []byte) {
	fake.signMutex.RLock()
	defer fake.signMutex.RUnlock()
	return fake.signArgsForCall[i].cred, fake.signArgsForCall[i].sk, fake.signArgsForCall[i].Nym, fake.signArgsForCall[i].RNym, fake.signArgsForCall[i].ipk, fake.signArgsForCall[i].attributes, fake.signArgsForCall[i].msg, fake.signArgsForCall[i].rhIndex, fake.signArgsForCall[i].cri
}
func (fake *SignatureScheme) SignReturns(result1 []byte, result2 error) {
	fake.SignStub = nil
	fake.signReturns = struct {
		result1 []byte
		result2 error
	}{result1, result2}
}
func (fake *SignatureScheme) SignReturnsOnCall(i int, result1 []byte, result2 error) {
	fake.SignStub = nil
	if fake.signReturnsOnCall == nil {
		fake.signReturnsOnCall = make(map[int]struct {
			result1 []byte
			result2 error
		})
	}
	fake.signReturnsOnCall[i] = struct {
		result1 []byte
		result2 error
	}{result1, result2}
}
func (fake *SignatureScheme) Verify(pk handlers.IssuerPublicKey, signature []byte, digest []byte, attributes []bccsp.IdemixAttribute, hIndex int, revocationPublicKey *ecdsa.PublicKey, epoch int) error {
	var signatureCopy []byte
	if signature != nil {
		signatureCopy = make([]byte, len(signature))
		copy(signatureCopy, signature)
	}
	var digestCopy []byte
	if digest != nil {
		digestCopy = make([]byte, len(digest))
		copy(digestCopy, digest)
	}
	var attributesCopy []bccsp.IdemixAttribute
	if attributes != nil {
		attributesCopy = make([]bccsp.IdemixAttribute, len(attributes))
		copy(attributesCopy, attributes)
	}
	fake.verifyMutex.Lock()
	ret, specificReturn := fake.verifyReturnsOnCall[len(fake.verifyArgsForCall)]
	fake.verifyArgsForCall = append(fake.verifyArgsForCall, struct {
		pk                  handlers.IssuerPublicKey
		signature           []byte
		digest              []byte
		attributes          []bccsp.IdemixAttribute
		hIndex              int
		revocationPublicKey *ecdsa.PublicKey
		epoch               int
	}{pk, signatureCopy, digestCopy, attributesCopy, hIndex, revocationPublicKey, epoch})
	fake.recordInvocation("Verify", []interface{}{pk, signatureCopy, digestCopy, attributesCopy, hIndex, revocationPublicKey, epoch})
	fake.verifyMutex.Unlock()
	if fake.VerifyStub != nil {
		return fake.VerifyStub(pk, signature, digest, attributes, hIndex, revocationPublicKey, epoch)
	}
	if specificReturn {
		return ret.result1
	}
	return fake.verifyReturns.result1
}
func (fake *SignatureScheme) VerifyCallCount() int {
	fake.verifyMutex.RLock()
	defer fake.verifyMutex.RUnlock()
	return len(fake.verifyArgsForCall)
}
func (fake *SignatureScheme) VerifyArgsForCall(i int) (handlers.IssuerPublicKey, []byte, []byte, []bccsp.IdemixAttribute, int, *ecdsa.PublicKey, int) {
	fake.verifyMutex.RLock()
	defer fake.verifyMutex.RUnlock()
	return fake.verifyArgsForCall[i].pk, fake.verifyArgsForCall[i].signature, fake.verifyArgsForCall[i].digest, fake.verifyArgsForCall[i].attributes, fake.verifyArgsForCall[i].hIndex, fake.verifyArgsForCall[i].revocationPublicKey, fake.verifyArgsForCall[i].epoch
}
func (fake *SignatureScheme) VerifyReturns(result1 error) {
	fake.VerifyStub = nil
	fake.verifyReturns = struct {
		result1 error
	}{result1}
}
func (fake *SignatureScheme) VerifyReturnsOnCall(i int, result1 error) {
	fake.VerifyStub = nil
	if fake.verifyReturnsOnCall == nil {
		fake.verifyReturnsOnCall = make(map[int]struct {
			result1 error
		})
	}
	fake.verifyReturnsOnCall[i] = struct {
		result1 error
	}{result1}
}
func (fake *SignatureScheme) Invocations() map[string][][]interface{} {
	fake.invocationsMutex.RLock()
	defer fake.invocationsMutex.RUnlock()
	fake.signMutex.RLock()
	defer fake.signMutex.RUnlock()
	fake.verifyMutex.RLock()
	defer fake.verifyMutex.RUnlock()
	copiedInvocations := map[string][][]interface{}{}
	for key, value := range fake.invocations {
		copiedInvocations[key] = value
	}
	return copiedInvocations
}
func (fake *SignatureScheme) recordInvocation(key string, args []interface{}) {
	fake.invocationsMutex.Lock()
	defer fake.invocationsMutex.Unlock()
	if fake.invocations == nil {
		fake.invocations = map[string][][]interface{}{}
	}
	if fake.invocations[key] == nil {
		fake.invocations[key] = [][]interface{}{}
	}
	fake.invocations[key] = append(fake.invocations[key], args)
}

var _ handlers.SignatureScheme = new(SignatureScheme)

func (*SignatureScheme) Invocations

func (fake *SignatureScheme) Invocations() map[string][][]interface{}

func (*SignatureScheme) Sign

func (fake *SignatureScheme) Sign(cred []byte, sk handlers.Big, Nym handlers.Ecp, RNym handlers.Big, ipk handlers.IssuerPublicKey, attributes []bccsp.IdemixAttribute, msg []byte, rhIndex int, cri []byte) ([]byte, error)

func (*SignatureScheme) SignArgsForCall

func (*SignatureScheme) SignCallCount

func (fake *SignatureScheme) SignCallCount() int

func (*SignatureScheme) SignReturns

func (fake *SignatureScheme) SignReturns(result1 []byte, result2 error)

func (*SignatureScheme) SignReturnsOnCall

func (fake *SignatureScheme) SignReturnsOnCall(i int, result1 []byte, result2 error)

func (*SignatureScheme) Verify

func (fake *SignatureScheme) Verify(pk handlers.IssuerPublicKey, signature []byte, digest []byte, attributes []bccsp.IdemixAttribute, hIndex int, revocationPublicKey *sm2.PublicKey, epoch int) error

func (*SignatureScheme) VerifyArgsForCall

func (fake *SignatureScheme) VerifyArgsForCall(i int) (handlers.IssuerPublicKey, []byte, []byte, []bccsp.IdemixAttribute, int, *sm2.PublicKey, int)

func (*SignatureScheme) VerifyCallCount

func (fake *SignatureScheme) VerifyCallCount() int

func (*SignatureScheme) VerifyReturns

func (fake *SignatureScheme) VerifyReturns(result1 error)

func (*SignatureScheme) VerifyReturnsOnCall

func (fake *SignatureScheme) VerifyReturnsOnCall(i int, result1 error)

type User

type User struct {
	NewKeyStub func() (handlers.Big, error)

	NewKeyFromBytesStub func(raw []byte) (handlers.Big, error)

	MakeNymStub func(sk handlers.Big, key handlers.IssuerPublicKey) (handlers.Ecp, handlers.Big, error)

	NewPublicNymFromBytesStub func(raw []byte) (handlers.Ecp, error)
	// contains filtered or unexported fields
}

func (*User) Invocations

func (fake *User) Invocations() map[string][][]interface{}

func (*User) MakeNym

func (fake *User) MakeNym(sk handlers.Big, key handlers.IssuerPublicKey) (handlers.Ecp, handlers.Big, error)

func (*User) MakeNymArgsForCall

func (fake *User) MakeNymArgsForCall(i int) (handlers.Big, handlers.IssuerPublicKey)

func (*User) MakeNymCallCount

func (fake *User) MakeNymCallCount() int

func (*User) MakeNymReturns

func (fake *User) MakeNymReturns(result1 handlers.Ecp, result2 handlers.Big, result3 error)

func (*User) MakeNymReturnsOnCall

func (fake *User) MakeNymReturnsOnCall(i int, result1 handlers.Ecp, result2 handlers.Big, result3 error)

func (*User) NewKey

func (fake *User) NewKey() (handlers.Big, error)

func (*User) NewKeyCallCount

func (fake *User) NewKeyCallCount() int

func (*User) NewKeyFromBytes

func (fake *User) NewKeyFromBytes(raw []byte) (handlers.Big, error)

func (*User) NewKeyFromBytesArgsForCall

func (fake *User) NewKeyFromBytesArgsForCall(i int) []byte

func (*User) NewKeyFromBytesCallCount

func (fake *User) NewKeyFromBytesCallCount() int

func (*User) NewKeyFromBytesReturns

func (fake *User) NewKeyFromBytesReturns(result1 handlers.Big, result2 error)

func (*User) NewKeyFromBytesReturnsOnCall

func (fake *User) NewKeyFromBytesReturnsOnCall(i int, result1 handlers.Big, result2 error)

func (*User) NewKeyReturns

func (fake *User) NewKeyReturns(result1 handlers.Big, result2 error)

func (*User) NewKeyReturnsOnCall

func (fake *User) NewKeyReturnsOnCall(i int, result1 handlers.Big, result2 error)

func (*User) NewPublicNymFromBytes

func (fake *User) NewPublicNymFromBytes(raw []byte) (handlers.Ecp, error)

func (*User) NewPublicNymFromBytesArgsForCall

func (fake *User) NewPublicNymFromBytesArgsForCall(i int) []byte

func (*User) NewPublicNymFromBytesCallCount

func (fake *User) NewPublicNymFromBytesCallCount() int

func (*User) NewPublicNymFromBytesReturns

func (fake *User) NewPublicNymFromBytesReturns(result1 handlers.Ecp, result2 error)

func (*User) NewPublicNymFromBytesReturnsOnCall

func (fake *User) NewPublicNymFromBytesReturnsOnCall(i int, result1 handlers.Ecp, result2 error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL