fabric: github.com/hyperledger/fabric/bccsp/idemix/handlers/mock Index | Files

package mock

import "github.com/hyperledger/fabric/bccsp/idemix/handlers/mock"

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

Package Files

big.go credential.go credrequest.go ecp.go issuer.go issuer_public_key.go issuer_secret_key.go nymsignature_scheme.go revocation.go signature_scheme.go user.go

type Big Uses

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

func (*Big) Bytes Uses

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

func (*Big) BytesCallCount Uses

func (fake *Big) BytesCallCount() int

func (*Big) BytesReturns Uses

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

func (*Big) BytesReturnsOnCall Uses

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

func (*Big) Invocations Uses

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

type CredRequest Uses

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 Uses

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

func (*CredRequest) Sign Uses

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

func (*CredRequest) SignArgsForCall Uses

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

func (*CredRequest) SignCallCount Uses

func (fake *CredRequest) SignCallCount() int

func (*CredRequest) SignReturns Uses

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

func (*CredRequest) SignReturnsOnCall Uses

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

func (*CredRequest) Verify Uses

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

func (*CredRequest) VerifyArgsForCall Uses

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

func (*CredRequest) VerifyCallCount Uses

func (fake *CredRequest) VerifyCallCount() int

func (*CredRequest) VerifyReturns Uses

func (fake *CredRequest) VerifyReturns(result1 error)

func (*CredRequest) VerifyReturnsOnCall Uses

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

type Credential Uses

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 Uses

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

func (*Credential) Sign Uses

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

func (*Credential) SignArgsForCall Uses

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

func (*Credential) SignCallCount Uses

func (fake *Credential) SignCallCount() int

func (*Credential) SignReturns Uses

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

func (*Credential) SignReturnsOnCall Uses

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

func (*Credential) Verify Uses

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

func (*Credential) VerifyArgsForCall Uses

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

func (*Credential) VerifyCallCount Uses

func (fake *Credential) VerifyCallCount() int

func (*Credential) VerifyReturns Uses

func (fake *Credential) VerifyReturns(result1 error)

func (*Credential) VerifyReturnsOnCall Uses

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

type Ecp Uses

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

func (*Ecp) Bytes Uses

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

func (*Ecp) BytesCallCount Uses

func (fake *Ecp) BytesCallCount() int

func (*Ecp) BytesReturns Uses

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

func (*Ecp) BytesReturnsOnCall Uses

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

func (*Ecp) Invocations Uses

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

type Issuer Uses

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 Uses

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

func (*Issuer) NewKey Uses

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

func (*Issuer) NewKeyArgsForCall Uses

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

func (*Issuer) NewKeyCallCount Uses

func (fake *Issuer) NewKeyCallCount() int

func (*Issuer) NewKeyReturns Uses

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

func (*Issuer) NewKeyReturnsOnCall Uses

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

func (*Issuer) NewPublicKeyFromBytes Uses

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

func (*Issuer) NewPublicKeyFromBytesArgsForCall Uses

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

func (*Issuer) NewPublicKeyFromBytesCallCount Uses

func (fake *Issuer) NewPublicKeyFromBytesCallCount() int

func (*Issuer) NewPublicKeyFromBytesReturns Uses

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

func (*Issuer) NewPublicKeyFromBytesReturnsOnCall Uses

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

type IssuerPublicKey Uses

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

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

func (*IssuerPublicKey) Bytes Uses

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

func (*IssuerPublicKey) BytesCallCount Uses

func (fake *IssuerPublicKey) BytesCallCount() int

func (*IssuerPublicKey) BytesReturns Uses

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

func (*IssuerPublicKey) BytesReturnsOnCall Uses

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

func (*IssuerPublicKey) Hash Uses

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

func (*IssuerPublicKey) HashCallCount Uses

func (fake *IssuerPublicKey) HashCallCount() int

func (*IssuerPublicKey) HashReturns Uses

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

func (*IssuerPublicKey) HashReturnsOnCall Uses

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

func (*IssuerPublicKey) Invocations Uses

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

type IssuerSecretKey Uses

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

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

func (*IssuerSecretKey) Bytes Uses

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

func (*IssuerSecretKey) BytesCallCount Uses

func (fake *IssuerSecretKey) BytesCallCount() int

func (*IssuerSecretKey) BytesReturns Uses

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

func (*IssuerSecretKey) BytesReturnsOnCall Uses

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

func (*IssuerSecretKey) Invocations Uses

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

func (*IssuerSecretKey) Public Uses

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

func (*IssuerSecretKey) PublicCallCount Uses

func (fake *IssuerSecretKey) PublicCallCount() int

func (*IssuerSecretKey) PublicReturns Uses

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

func (*IssuerSecretKey) PublicReturnsOnCall Uses

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

type NymSignatureScheme Uses

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 Uses

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

func (*NymSignatureScheme) Sign Uses

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

func (*NymSignatureScheme) SignArgsForCall Uses

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

func (*NymSignatureScheme) SignCallCount Uses

func (fake *NymSignatureScheme) SignCallCount() int

func (*NymSignatureScheme) SignReturns Uses

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

func (*NymSignatureScheme) SignReturnsOnCall Uses

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

func (*NymSignatureScheme) Verify Uses

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

func (*NymSignatureScheme) VerifyArgsForCall Uses

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

func (*NymSignatureScheme) VerifyCallCount Uses

func (fake *NymSignatureScheme) VerifyCallCount() int

func (*NymSignatureScheme) VerifyReturns Uses

func (fake *NymSignatureScheme) VerifyReturns(result1 error)

func (*NymSignatureScheme) VerifyReturnsOnCall Uses

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

type Revocation Uses

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

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

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

func (*Revocation) Invocations Uses

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

func (*Revocation) NewKey Uses

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

func (*Revocation) NewKeyCallCount Uses

func (fake *Revocation) NewKeyCallCount() int

func (*Revocation) NewKeyReturns Uses

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

func (*Revocation) NewKeyReturnsOnCall Uses

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

func (*Revocation) Sign Uses

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

func (*Revocation) SignArgsForCall Uses

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

func (*Revocation) SignCallCount Uses

func (fake *Revocation) SignCallCount() int

func (*Revocation) SignReturns Uses

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

func (*Revocation) SignReturnsOnCall Uses

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

func (*Revocation) Verify Uses

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

func (*Revocation) VerifyArgsForCall Uses

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

func (*Revocation) VerifyCallCount Uses

func (fake *Revocation) VerifyCallCount() int

func (*Revocation) VerifyReturns Uses

func (fake *Revocation) VerifyReturns(result1 error)

func (*Revocation) VerifyReturnsOnCall Uses

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

type SignatureScheme Uses

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 *ecdsa.PublicKey, epoch int) error
    // contains filtered or unexported fields
}

func (*SignatureScheme) Invocations Uses

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

func (*SignatureScheme) Sign Uses

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 Uses

func (fake *SignatureScheme) SignArgsForCall(i int) ([]byte, handlers.Big, handlers.Ecp, handlers.Big, handlers.IssuerPublicKey, []bccsp.IdemixAttribute, []byte, int, []byte)

func (*SignatureScheme) SignCallCount Uses

func (fake *SignatureScheme) SignCallCount() int

func (*SignatureScheme) SignReturns Uses

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

func (*SignatureScheme) SignReturnsOnCall Uses

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

func (*SignatureScheme) Verify Uses

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

func (*SignatureScheme) VerifyArgsForCall Uses

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

func (*SignatureScheme) VerifyCallCount Uses

func (fake *SignatureScheme) VerifyCallCount() int

func (*SignatureScheme) VerifyReturns Uses

func (fake *SignatureScheme) VerifyReturns(result1 error)

func (*SignatureScheme) VerifyReturnsOnCall Uses

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

type User Uses

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 Uses

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

func (*User) MakeNym Uses

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

func (*User) MakeNymArgsForCall Uses

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

func (*User) MakeNymCallCount Uses

func (fake *User) MakeNymCallCount() int

func (*User) MakeNymReturns Uses

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

func (*User) MakeNymReturnsOnCall Uses

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

func (*User) NewKey Uses

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

func (*User) NewKeyCallCount Uses

func (fake *User) NewKeyCallCount() int

func (*User) NewKeyFromBytes Uses

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

func (*User) NewKeyFromBytesArgsForCall Uses

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

func (*User) NewKeyFromBytesCallCount Uses

func (fake *User) NewKeyFromBytesCallCount() int

func (*User) NewKeyFromBytesReturns Uses

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

func (*User) NewKeyFromBytesReturnsOnCall Uses

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

func (*User) NewKeyReturns Uses

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

func (*User) NewKeyReturnsOnCall Uses

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

func (*User) NewPublicNymFromBytes Uses

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

func (*User) NewPublicNymFromBytesArgsForCall Uses

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

func (*User) NewPublicNymFromBytesCallCount Uses

func (fake *User) NewPublicNymFromBytesCallCount() int

func (*User) NewPublicNymFromBytesReturns Uses

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

func (*User) NewPublicNymFromBytesReturnsOnCall Uses

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

Package mock imports 4 packages (graph). Updated 2018-12-11. Refresh now. Tools for package owners.