mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoWrapperInterface

type CryptoWrapperInterface struct {
	mock.Mock
}

CryptoWrapperInterface is an autogenerated mock type for the CryptoWrapperInterface type

func (*CryptoWrapperInterface) FromECDSAPub

func (_m *CryptoWrapperInterface) FromECDSAPub(pub *ecdsa.PublicKey) []byte

FromECDSAPub provides a mock function with given fields: pub

func (*CryptoWrapperInterface) Keccak256

func (_m *CryptoWrapperInterface) Keccak256(data ...[]byte) []byte

Keccak256 provides a mock function with given fields: data

func (*CryptoWrapperInterface) PubkeyToAddress

func (_m *CryptoWrapperInterface) PubkeyToAddress(p ecdsa.PublicKey) common.Address

PubkeyToAddress provides a mock function with given fields: p

func (*CryptoWrapperInterface) SigToPub

func (_m *CryptoWrapperInterface) SigToPub(hash []byte, sig []byte) (*ecdsa.PublicKey, error)

SigToPub provides a mock function with given fields: hash, sig

func (*CryptoWrapperInterface) VerifySignature

func (_m *CryptoWrapperInterface) VerifySignature(pubkey []byte, hash []byte, signature []byte) bool

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

Jump to

Keyboard shortcuts

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