Documentation ¶
Index ¶
- type KeyStore
- func (_m *KeyStore) Addresses() (types.Set[types.Address], error)
- func (_m *KeyStore) Close() error
- func (_m *KeyStore) DefaultPublicIdentity() (identity.Identity, error)
- func (_m *KeyStore) ExtraUserData(key string) (interface{}, bool, error)
- func (_m *KeyStore) Identities() ([]identity.Identity, error)
- func (_m *KeyStore) IdentityExists(address types.Address) (bool, error)
- func (_m *KeyStore) IdentityWithAddress(address types.Address) (identity.Identity, error)
- func (_m *KeyStore) LocalSymEncKey() crypto.SymEncKey
- func (_m *KeyStore) Mnemonic() (string, error)
- func (_m *KeyStore) NewIdentity(public bool) (identity.Identity, error)
- func (_m *KeyStore) OpenMessageFrom(usingIdentity types.Address, senderPublicKey *crypto.AsymEncPubkey, ...) ([]byte, error)
- func (_m *KeyStore) PublicIdentities() ([]identity.Identity, error)
- func (_m *KeyStore) SaveExtraUserData(key string, value interface{}) error
- func (_m *KeyStore) SealMessageFor(usingIdentity types.Address, recipientPubKey *crypto.AsymEncPubkey, msg []byte) ([]byte, error)
- func (_m *KeyStore) SignHash(usingIdentity types.Address, data types.Hash) ([]byte, error)
- func (_m *KeyStore) Unlock(password string, userMnemonic string) error
- func (_m *KeyStore) VerifySignature(usingIdentity types.Address, hash types.Hash, signature []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyStore ¶
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) DefaultPublicIdentity ¶
DefaultPublicIdentity provides a mock function with given fields:
func (*KeyStore) ExtraUserData ¶
ExtraUserData provides a mock function with given fields: key
func (*KeyStore) Identities ¶
Identities provides a mock function with given fields:
func (*KeyStore) IdentityExists ¶
IdentityExists provides a mock function with given fields: address
func (*KeyStore) IdentityWithAddress ¶
IdentityWithAddress provides a mock function with given fields: address
func (*KeyStore) LocalSymEncKey ¶
LocalSymEncKey provides a mock function with given fields:
func (*KeyStore) NewIdentity ¶
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 ¶
PublicIdentities provides a mock function with given fields:
func (*KeyStore) SaveExtraUserData ¶
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 ¶
SignHash provides a mock function with given fields: usingIdentity, data