primitives

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CpuPowValidate

type CpuPowValidate struct{}

CpuPowValidate does a cpu POW proof validation.

func (*CpuPowValidate) RequiredGas

func (m *CpuPowValidate) RequiredGas(input []byte) uint64

func (*CpuPowValidate) Run

func (m *CpuPowValidate) Run(input []byte) ([]byte, error)

type MemPowValidate

type MemPowValidate struct{}

MemPowValidate implements a memory nonce validate

func (*MemPowValidate) RequiredGas

func (m *MemPowValidate) RequiredGas(input []byte) uint64

RequiredGas returns the gas required to execute the pre-compiled contract.

func (*MemPowValidate) Run

func (m *MemPowValidate) Run(input []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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