mockhookcrypto

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KryptoHookMock

type KryptoHookMock int

KryptoHookMock is a krypto hook implementation that we use for VM tests

const KryptoHookMockInstance KryptoHookMock = 0

KryptoHookMockInstance is a krypto hook mock singleton

func (KryptoHookMock) Ecrecover

func (KryptoHookMock) Ecrecover(hash []byte, recoveryID []byte, r []byte, s []byte) ([]byte, error)

Ecrecover calculates the corresponding Ethereum address for the public key which created the given signature

func (KryptoHookMock) Keccak256

func (KryptoHookMock) Keccak256(data []byte) ([]byte, error)

Keccak256 cryptographic function

func (KryptoHookMock) Ripemd160

func (KryptoHookMock) Ripemd160(data []byte) ([]byte, error)

Ripemd160 cryptographic function

func (KryptoHookMock) Sha256

func (KryptoHookMock) Sha256(data []byte) ([]byte, error)

Sha256 cryptographic function

Jump to

Keyboard shortcuts

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