Documentation ¶
Index ¶
- type CryptoWrapperInterface
- func (_m *CryptoWrapperInterface) FromECDSAPub(pub *ecdsa.PublicKey) []byte
- func (_m *CryptoWrapperInterface) Keccak256(data ...[]byte) []byte
- func (_m *CryptoWrapperInterface) PubkeyToAddress(p ecdsa.PublicKey) common.Address
- func (_m *CryptoWrapperInterface) SigToPub(hash []byte, sig []byte) (*ecdsa.PublicKey, error)
- func (_m *CryptoWrapperInterface) VerifySignature(pubkey []byte, hash []byte, signature []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoWrapperInterface ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.