txstate

package
v0.0.0-...-93382e6 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

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_P

func (state *State) AddOut_P(out_p *tx.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) RecordState

func (self *State) RecordState(putter decedb.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