service

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPayloadInfo

func GetPayloadInfo(p types.Payload, pVersion byte) service.PayloadInfo

func GetTransactionInfo

func GetTransactionInfo(cfg *service.Config, header *types.Header, tx *types.Transaction) *service.TransactionInfo

func GetTransactionInfoFromBytes

func GetTransactionInfoFromBytes(txInfoBytes []byte) (*service.TransactionInfo, error)

Types

type HttpServiceExtend

type HttpServiceExtend struct {
	*service.HttpService

	Config *service.Config
	// contains filtered or unexported fields
}

func NewHttpService

func NewHttpService(cfg *service.Config, store *blockchain.IDChainStore) *HttpServiceExtend

func (*HttpServiceExtend) GetIdentificationTxByIdAndPath

func (s *HttpServiceExtend) GetIdentificationTxByIdAndPath(param util.Params) (interface{}, error)

func (*HttpServiceExtend) ListUnspent

func (s *HttpServiceExtend) ListUnspent(param util.Params) (interface{}, error)

type RegisterIdentificationContentInfo

type RegisterIdentificationContentInfo struct {
	Path   string                            `json:"path"`
	Values []RegisterIdentificationValueInfo `json:"values"`
}

type RegisterIdentificationInfo

type RegisterIdentificationInfo struct {
	Id       string                              `json:"id"`
	Sign     string                              `json:"sign"`
	Contents []RegisterIdentificationContentInfo `json:"contents"`
}

type RegisterIdentificationValueInfo

type RegisterIdentificationValueInfo struct {
	DataHash string `json:"datahash"`
	Proof    string `json:"proof"`
	Info     string `json:"info"`
}

Jump to

Keyboard shortcuts

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