ssi

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SSI_Inst = SSI{}

Functions

func DecNilOuts

func DecNilOuts(outs []txtool.Out, skr *c_type.PKr) (douts []txtool.DOut)

Types

type Block

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

type GIn

type GIn struct {
	SKr  c_type.PKr
	Root c_type.Uint256
}

type ISSI

type ISSI interface {
	GetBlocksInfo(start uint64, count uint64) ([]Block, error)
	Detail(root []c_type.Uint256, skr *c_type.PKr) ([]txtool.DOut, error)
	GenTx(param *PreTxParam) (c_type.Uint256, error)
	CommitTx(txhash *c_type.Uint256) error
}

type Out

type Out struct {
	Root c_type.Uint256
	Hash c_type.Uint256
	PKr  c_type.PKr
}

type PreTxParam

type PreTxParam struct {
	Gas      uint64
	GasPrice uint64
	From     txtool.Kr
	Ins      []GIn
	Outs     []txtool.GOut
}

type SSI

type SSI struct {
}

func (*SSI) CreateKr

func (self *SSI) CreateKr(flag bool) (kr txtool.Kr)

func (*SSI) Detail

func (self *SSI) Detail(roots []c_type.Uint256, skr *c_type.PKr) (douts []txtool.DOut, e error)

func (*SSI) GenTx

func (self *SSI) GenTx(param *PreTxParam) (hash c_type.Uint256, e error)

func (*SSI) GenTxParam

func (self *SSI) GenTxParam(param *PreTxParam) (p txtool.GTxParam, e error)

func (*SSI) GetBlocksInfo

func (self *SSI) GetBlocksInfo(start uint64, count uint64) (blocks []Block, e error)

func (*SSI) GetTx

func (self *SSI) GetTx(txhash c_type.Uint256) (tx *txtool.GTx, e error)

Jump to

Keyboard shortcuts

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