util

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: GPL-3.0, Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

View Source
const HashLenght = 32

Variables

View Source
var (
	UnSupportedTypeError  = errors.New("unsupported arg type")
	InvalidUnmarshalError = errors.New("invalid unmarshal error")
)

Functions

func EncodeReturnValue

func EncodeReturnValue(retVals ...interface{}) ([]byte, error)

EncodeReturnValue encode the return value to the format needed by evm

func ExtractMethodHash

func ExtractMethodHash(input []byte) []byte

ExtractMethodHash extract method hash from input

func ExtractParam

func ExtractParam(input []byte, args ...interface{}) error

ExtractParam extract string params from input

func Hash

func Hash(data []byte) []byte

Hash return the hash of the data

Types

This section is empty.

Jump to

Keyboard shortcuts

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