Documentation ¶
Index ¶
- Constants
- func CalcRoot(value *keys.Uint256, pos uint64, paths *[DEPTH]keys.Uint256) (ret keys.Uint256)
- func Combine(l *keys.Uint256, r *keys.Uint256) (out keys.Uint256)
- func Debug_Weak_panic(msg string, ctx ...interface{})
- func Need_debug() bool
- type Current
- type CurrentGet
- type Data
- type Leaf
- type MerkleTree
- type OutState
- func (self *OutState) Clone() (ret OutState)
- func (out *OutState) IsO() bool
- func (self *OutState) Serial() (ret []byte, e error)
- func (self *OutState) ToIndexRsk() (ret keys.Uint256)
- func (self *OutState) ToOutCM() *keys.Uint256
- func (self *OutState) ToPKr() *keys.PKr
- func (self *OutState) ToRootCM() *keys.Uint256
- type OutState0Get
- type State
- func (state *State) AddOut(out_o *stx.Out_O, out_z *stx.Out_Z) (root keys.Uint256)
- func (state *State) AddStx(st *stx.T) (e error)
- func (state *State) GetOut(root *keys.Uint256) (src *OutState, e error)
- func (self *State) HasIn(hash *keys.Uint256) (exists bool)
- func (self *State) Name2BKey(name string, num uint64) (ret []byte)
- func (self *State) Num() uint64
- func (self *State) Revert(revid int)
- func (self *State) Snapshot(revid int)
- func (self *State) Tri() tri.Tri
- func (self *State) Update()
- type State0BlockGet
- type State0Trees
- type StateBlock
Constants ¶
View Source
const BLOCK_NAME = "ZState0_BLOCK"
View Source
const DEPTH = cpt.DEPTH
View Source
const LAST_OUTSTATE0_NAME = tri.KEY_NAME("ZState0_Cur")
Variables ¶
This section is empty.
Functions ¶
func Debug_Weak_panic ¶
func Debug_Weak_panic(msg string, ctx ...interface{})
func Need_debug ¶
func Need_debug() bool
Types ¶
type CurrentGet ¶
type CurrentGet struct {
// contains filtered or unexported fields
}
func (*CurrentGet) Unserial ¶
func (self *CurrentGet) Unserial(v []byte) (e error)
type MerkleTree ¶
type MerkleTree struct {
// contains filtered or unexported fields
}
func NewMerkleTree ¶
func NewMerkleTree(db tri.Tri) (ret MerkleTree)
func (*MerkleTree) AppendLeaf ¶
func (self *MerkleTree) AppendLeaf(value keys.Uint256) keys.Uint256
type OutState ¶
type OutState struct { Index uint64 Out_O *stx.Out_O `rlp:"nil"` Out_Z *stx.Out_Z `rlp:"nil"` OutCM *keys.Uint256 `rlp:"nil"` RootCM *keys.Uint256 `rlp:"nil"` }
func (*OutState) ToIndexRsk ¶
type OutState0Get ¶
type OutState0Get struct {
// contains filtered or unexported fields
}
func (*OutState0Get) Unserial ¶
func (self *OutState0Get) Unserial(v []byte) (e error)
type State ¶
type State struct { MTree MerkleTree Data // contains filtered or unexported fields }
type State0BlockGet ¶
type State0BlockGet struct {
// contains filtered or unexported fields
}
func (*State0BlockGet) Unserial ¶
func (self *State0BlockGet) Unserial(v []byte) (e error)
type State0Trees ¶
Click to show internal directories.
Click to hide internal directories.