entity

package
v0.0.0-...-8cea40f Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(tx *Transaction, privateKey []byte)

func Verify

func Verify(tx Transaction) bool

Types

type Account

type Account struct {
	Nonce       uint64
	Balance     uint64
	StorageRoot []byte
	//如果账户并非合约账户 则Code==nil
	Code []byte
}

type Receipt

type Receipt struct {
	Results []Result
}

type Result

type Result struct {
	Hash    []byte
	State   string //"SUCCESS" or "FAIL"
	Message string //失败的原因
}

type Transaction

type Transaction struct {
	Nonce    uint64
	Gas      uint64
	GasLimit uint64
	From     []byte
	To       []byte
	Amount   uint64
	Data     []byte
	R, S, V  []byte
}

Jump to

Keyboard shortcuts

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