Documentation ¶
Index ¶
- Variables
- func AnalyzeNils(header *types.Header, ch Chain)
- func Debug_Weak_panic(msg string, ctx ...interface{})
- func Need_debug() bool
- type Chain
- type State
- func (state *State) AddOut_O(out_o *stx_v0.Out_O, txhash *c_type.Uint256) (root c_type.Uint256)
- func (state *State) AddOut_P(out_p *stx_v1.Out_P, txhash *c_type.Uint256) (root c_type.Uint256)
- func (state *State) AddStx(st *stx.T) (e error)
- func (self *State) AddTxOut_Log(pkr *c_type.PKr) int
- func (state *State) FindAnchorInSzk(root *c_type.Uint256) bool
- func (self *State) GetBlockDels() (dels []c_type.Uint256)
- func (self *State) GetBlockRoots() (roots []c_type.Uint256)
- func (state *State) GetOut(root *c_type.Uint256) (src *localdb.OutState)
- func (self *State) HasIn(hash *c_type.Uint256) (exists bool)
- func (self *State) Num() uint64
- func (self *State) PreGenerateRoot(header *types.Header, ch Chain)
- func (self *State) RecordState(putter serodb.Putter, root *c_type.Uint256)
- func (state *State) Revert(revid int)
- func (state *State) Snapshot(revid int)
- func (self *State) Tri() tri.Tri
- func (self *State) Update()
Constants ¶
This section is empty.
Variables ¶
View Source
var CzeroAddress = c_type.NewPKrByBytes(crypto.Keccak512(nil))
View Source
var CzeroMerkleParam = merkle.NewParam(&CzeroAddress, c_superzk.Czero_combine)
View Source
var SzkAddress = c_type.NewPKrByBytes(crypto.Keccak256([]byte("$SuperZK$MerkleTree")))
View Source
var SzkMerkleParam = merkle.NewParam(&SzkAddress, c_superzk.Combine)
Functions ¶
func AnalyzeNils ¶
func Debug_Weak_panic ¶
func Debug_Weak_panic(msg string, ctx ...interface{})
func Need_debug ¶
func Need_debug() bool
Types ¶
type State ¶
type State struct { CzeroTree merkle.MerkleTree SzkTree merkle.MerkleTree // contains filtered or unexported fields }
func (*State) GetBlockDels ¶
func (*State) GetBlockRoots ¶
func (*State) RecordState ¶
Click to show internal directories.
Click to hide internal directories.