ssi

package
v0.9.0-dev Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SSI_Inst = SSI{}

Functions

This section is empty.

Types

type Block

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

type GIn

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

type GenTxParam

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

type ISSI

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

type Out

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

type SSI

type SSI struct {
}

func (*SSI) CreateKr

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

func (*SSI) Detail

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

func (*SSI) GenTx

func (self *SSI) GenTx(param *GenTxParam) (hash keys.Uint256, 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 keys.Uint256) (tx *txtool.GTx, e error)

Jump to

Keyboard shortcuts

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