common

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: ISC Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CopyReceipts

func CopyReceipts(receipts []*types.Receipt) []*types.Receipt

func DecodeTx added in v1.0.21

func DecodeTx(data []byte) (*types.Transaction, error)

func FromEVMHash added in v1.0.19

func FromEVMHash(h common.Hash) *hash.Hash

func Merge

func Merge(groups ...[]cli.Flag) []cli.Flag

Merge merges the given flag slices.

func NewMeerEVMAddress

func NewMeerEVMAddress(pubkeyHex string) (common.Address, error)

func ProcessEnv added in v1.0.19

func ProcessEnv(env string, identifier string, exclusionFlags []cli.Flag) ([]string, error)

func ReverseBytes

func ReverseBytes(bs *[]byte) *[]byte

func ToEVMHash

func ToEVMHash(h *hash.Hash) common.Hash

func ToQNGTx

func ToQNGTx(tx *types.Transaction, timestamp int64, newEncoding bool) *qtypes.Transaction

func ToTxHex added in v1.0.21

func ToTxHex(data []byte) []byte

func ToTxHexStr added in v1.0.21

func ToTxHexStr(data []byte) string

func TotalFees

func TotalFees(block *types.Block, receipts []*types.Receipt) *big.Float

Types

type Key

type Key struct {
	Address    common.Address
	PrivateKey *ecdsa.PrivateKey
}

func NewKey

func NewKey(rand io.Reader) (*Key, error)

func NewKeyFromECDSA

func NewKeyFromECDSA(privateKeyECDSA *ecdsa.PrivateKey) *Key

Jump to

Keyboard shortcuts

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