mockhookcrypto

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: GPL-3.0 Imports: 8 Imported by: 5

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) Bn128add

Bn128add is a krypto function

func (KryptoHookMock) Bn128ate

func (KryptoHookMock) Bn128ate(l1 []vmi.Bn128Point, l2 []vmi.Bn128G2Point) (bool, error)

Bn128ate is a krypto function

func (KryptoHookMock) Bn128g2valid

func (KryptoHookMock) Bn128g2valid(p vmi.Bn128G2Point) (bool, error)

Bn128g2valid is a krypto function

func (KryptoHookMock) Bn128mul

func (KryptoHookMock) Bn128mul(k *big.Int, p vmi.Bn128Point) (vmi.Bn128Point, error)

Bn128mul is a krypto function

func (KryptoHookMock) Bn128valid

func (KryptoHookMock) Bn128valid(p vmi.Bn128Point) (bool, error)

Bn128valid is a krypto function

func (KryptoHookMock) EcdsaRecover

func (KryptoHookMock) EcdsaRecover(hash string, v *big.Int, r string, s string) (string, error)

EcdsaRecover is a krypto function

func (KryptoHookMock) Keccak256

func (KryptoHookMock) Keccak256(str string) (string, error)

Keccak256 is a krypto function

func (KryptoHookMock) Ripemd160

func (KryptoHookMock) Ripemd160(str string) (string, error)

Ripemd160 is a krypto function

func (KryptoHookMock) Sha256

func (KryptoHookMock) Sha256(str string) (string, error)

Sha256 is a krypto function

Jump to

Keyboard shortcuts

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