txstate

package
v1.0.1-rc6-dev-review2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: GPL-3.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SzkAddress = c_type.NewPKrByBytes(crypto.Keccak256([]byte("$SuperZK$MerkleTree")))

Functions

func AnalyzeNils

func AnalyzeNils(header *types.Header, ch Chain)

func Debug_Weak_panic

func Debug_Weak_panic(msg string, ctx ...interface{})

func Need_debug

func Need_debug() bool

Types

type Chain

type Chain interface {
	GetBlock(hash common.Hash, number uint64) *types.Block
}

type State

type State struct {
	CzeroTree merkle.MerkleTree
	SzkTree   merkle.MerkleTree
	// contains filtered or unexported fields
}

func NewState

func NewState(tri tri.Tri, num uint64) (state State)

func (*State) AddOut_O

func (state *State) AddOut_O(out_o *stx_v0.Out_O, txhash *c_type.Uint256) (root c_type.Uint256)

func (*State) AddOut_P

func (state *State) AddOut_P(out_p *stx_v1.Out_P, txhash *c_type.Uint256) (root c_type.Uint256)

func (*State) AddStx

func (state *State) AddStx(st *stx.T) (e error)

func (*State) AddTxOut_Log

func (self *State) AddTxOut_Log(pkr *c_type.PKr) int

func (*State) FindAnchorInSzk

func (state *State) FindAnchorInSzk(root *c_type.Uint256) bool

func (*State) GetBlockDels

func (self *State) GetBlockDels() (dels []c_type.Uint256)

func (*State) GetBlockRoots

func (self *State) GetBlockRoots() (roots []c_type.Uint256)

func (*State) GetOut

func (state *State) GetOut(root *c_type.Uint256) (src *localdb.OutState)

func (*State) HasIn

func (self *State) HasIn(hash *c_type.Uint256) (exists bool)

func (*State) Num

func (self *State) Num() uint64

func (*State) PreGenerateRoot

func (self *State) PreGenerateRoot(header *types.Header, ch Chain)

func (*State) RecordState

func (self *State) RecordState(putter serodb.Putter, root *c_type.Uint256)

func (*State) Revert

func (state *State) Revert(revid int)

func (*State) Snapshot

func (state *State) Snapshot(revid int)

func (*State) Tri

func (self *State) Tri() tri.Tri

func (*State) Update

func (self *State) Update()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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