common

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HashLength      = 32
	MaxClosureDepth = 1024
)

Variables

View Source
var (
	BlankHash = make([]byte, HashLength, HashLength)
	ZeroHash  = hashes.Keccak256(nil)
)

Functions

func BytesDataToEVMIntHash

func BytesDataToEVMIntHash(data []byte) *evmInt256.Int

func EVMIntToHashBytes

func EVMIntToHashBytes(i *evmInt256.Int) [HashLength]byte

func GetDataFrom

func GetDataFrom(src []byte, offset uint64, size uint64) []byte

func HashBytesToEVMInt

func HashBytesToEVMInt(hash [HashLength]byte) (*evmInt256.Int, error)

func LeftPaddingSlice

func LeftPaddingSlice(src []byte, toSize int) []byte

func RightPaddingSlice

func RightPaddingSlice(src []byte, toSize int) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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