light_types

package
v0.7.4-beta.r7.4 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Num  hexutil.Uint64
	Hash keys.Uint256
	Outs []Out
	Nils []keys.Uint256
}

type DOut

type DOut struct {
	Asset assets.Asset
	Memo  keys.Uint512
	Nil   keys.Uint256
}

type GIn

type GIn struct {
	SKr     keys.PKr
	Out     Out
	Witness Witness
}

type GOut

type GOut struct {
	PKr   keys.PKr
	Asset assets.Asset
	Memo  keys.Uint512
}

type GTx

type GTx struct {
	Gas      hexutil.Uint64
	GasPrice hexutil.Big
	Tx       stx.T
	Hash     keys.Uint256
}

type GenTxParam

type GenTxParam struct {
	Gas      uint64
	GasPrice big.Int
	From     Kr
	Ins      []GIn
	Outs     []GOut
}

type ISLI

type ISLI interface {
	CreateKr() Kr
	DecOuts(outs []Out, skr *keys.PKr) ([]DOut, error)
	GenTx(param *GenTxParam) (GTx, error)
}

type ISRI

type ISRI interface {
	GetBlocksInfo(start uint64, count uint64) ([]Block, error)
	GetAnchor(roots []keys.Uint256) ([]Witness, error)
	CommitTx(tx *GTx) error
}

type Kr

type Kr struct {
	SKr keys.PKr
	PKr keys.PKr
}

type Out

type Out struct {
	Root  keys.Uint256
	State localdb.RootState
}

type Tx

type Tx struct {
	Hash keys.Uint256
	Tx   stx.T
}

type Witness

type Witness struct {
	Pos    hexutil.Uint64
	Paths  [cpt.DEPTH]keys.Uint256
	Anchor keys.Uint256
}

Jump to

Keyboard shortcuts

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