mocks

package
v0.0.0-...-2c4dd60 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyStore

type KeyStore struct {
	mock.Mock
}

KeyStore is an autogenerated mock type for the KeyStore type

func NewKeyStore

func NewKeyStore(t mockConstructorTestingTNewKeyStore) *KeyStore

NewKeyStore creates a new instance of KeyStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*KeyStore) Addresses

func (_m *KeyStore) Addresses() (types.Set[types.Address], error)

Addresses provides a mock function with given fields:

func (*KeyStore) Close

func (_m *KeyStore) Close() error

Close provides a mock function with given fields:

func (*KeyStore) DefaultPublicIdentity

func (_m *KeyStore) DefaultPublicIdentity() (identity.Identity, error)

DefaultPublicIdentity provides a mock function with given fields:

func (*KeyStore) ExtraUserData

func (_m *KeyStore) ExtraUserData(key string) (interface{}, bool, error)

ExtraUserData provides a mock function with given fields: key

func (*KeyStore) Identities

func (_m *KeyStore) Identities() ([]identity.Identity, error)

Identities provides a mock function with given fields:

func (*KeyStore) IdentityExists

func (_m *KeyStore) IdentityExists(address types.Address) (bool, error)

IdentityExists provides a mock function with given fields: address

func (*KeyStore) IdentityWithAddress

func (_m *KeyStore) IdentityWithAddress(address types.Address) (identity.Identity, error)

IdentityWithAddress provides a mock function with given fields: address

func (*KeyStore) LocalSymEncKey

func (_m *KeyStore) LocalSymEncKey() crypto.SymEncKey

LocalSymEncKey provides a mock function with given fields:

func (*KeyStore) Mnemonic

func (_m *KeyStore) Mnemonic() (string, error)

Mnemonic provides a mock function with given fields:

func (*KeyStore) NewIdentity

func (_m *KeyStore) NewIdentity(public bool) (identity.Identity, error)

NewIdentity provides a mock function with given fields: public

func (*KeyStore) OpenMessageFrom

func (_m *KeyStore) OpenMessageFrom(usingIdentity types.Address, senderPublicKey *crypto.AsymEncPubkey, msgEncrypted []byte) ([]byte, error)

OpenMessageFrom provides a mock function with given fields: usingIdentity, senderPublicKey, msgEncrypted

func (*KeyStore) PublicIdentities

func (_m *KeyStore) PublicIdentities() ([]identity.Identity, error)

PublicIdentities provides a mock function with given fields:

func (*KeyStore) SaveExtraUserData

func (_m *KeyStore) SaveExtraUserData(key string, value interface{}) error

SaveExtraUserData provides a mock function with given fields: key, value

func (*KeyStore) SealMessageFor

func (_m *KeyStore) SealMessageFor(usingIdentity types.Address, recipientPubKey *crypto.AsymEncPubkey, msg []byte) ([]byte, error)

SealMessageFor provides a mock function with given fields: usingIdentity, recipientPubKey, msg

func (*KeyStore) SignHash

func (_m *KeyStore) SignHash(usingIdentity types.Address, data types.Hash) ([]byte, error)

SignHash provides a mock function with given fields: usingIdentity, data

func (*KeyStore) Unlock

func (_m *KeyStore) Unlock(password string, userMnemonic string) error

Unlock provides a mock function with given fields: password, userMnemonic

func (*KeyStore) VerifySignature

func (_m *KeyStore) VerifySignature(usingIdentity types.Address, hash types.Hash, signature []byte) (bool, error)

VerifySignature provides a mock function with given fields: usingIdentity, hash, signature

Jump to

Keyboard shortcuts

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