Documentation
¶
Index ¶
- type KryptoHookMock
- func (KryptoHookMock) Bn128add(p1 vmi.Bn128Point, p2 vmi.Bn128Point) (vmi.Bn128Point, error)
- func (KryptoHookMock) Bn128ate(l1 []vmi.Bn128Point, l2 []vmi.Bn128G2Point) (bool, error)
- func (KryptoHookMock) Bn128g2valid(p vmi.Bn128G2Point) (bool, error)
- func (KryptoHookMock) Bn128mul(k *big.Int, p vmi.Bn128Point) (vmi.Bn128Point, error)
- func (KryptoHookMock) Bn128valid(p vmi.Bn128Point) (bool, error)
- func (KryptoHookMock) EcdsaRecover(hash string, v *big.Int, r string, s string) (string, error)
- func (KryptoHookMock) Keccak256(str string) (string, error)
- func (KryptoHookMock) Ripemd160(str string) (string, error)
- func (KryptoHookMock) Sha256(str string) (string, error)
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 ¶
func (KryptoHookMock) Bn128add(p1 vmi.Bn128Point, p2 vmi.Bn128Point) (vmi.Bn128Point, error)
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 ¶
EcdsaRecover is a krypto function
func (KryptoHookMock) Keccak256 ¶
func (KryptoHookMock) Keccak256(str string) (string, error)
Keccak256 is a krypto function
Click to show internal directories.
Click to hide internal directories.