bean

package
v0.0.0-...-33df928 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	Key   string `form:"key" json:"key"`     //
	Value string `form:"value" json:"value"` //
}

Params Params

type ServerConfig

type ServerConfig struct {
	Port string
	Mode string
}

ServerConfig ServerConfig Struct

type TxHash

type TxHash struct {
	Hash string `json:"hash"` //
}

TxHash TxHash

type TxParams

type TxParams struct {
	SendAddr string `form:"sendAddr" json:"sendAddr"` //
	RecvAddr string `form:"recvAddr" json:"recvAddr"` //
	Amount   string `form:"amount" json:"amount"`     //
	Fee      string `form:"fee" json:"fee"`           //
	Utxos    Utxos  `form:"utxo" json:"utxo"`         //
	Rlp      string `form:"rlp" json:"rlp"`           //
}

TxParams TxParams

type TxReturn

type TxReturn struct {
	Status          string   `json:"status"`           // status true false
	Message         string   `json:"message"`          // 如有失败原因,请写失败原因,成功请空着
	SignatureScript string   `json:"signature_script"` // from地址的 signature_script
	Tx              string   `json:"tx"`               // 待签名的tx字符串”//这个是标准的rlp编码后的字符串,跟例子上的数据一致
	HashList        []TxHash `json:"hashlist"`         // 待签名数据列表,按照input的顺序排列
}

TxReturn TxReturn

type TxUtxo

type TxUtxo struct {
	TxID               string `json:"txid"`                 //
	MessageIndex       uint32 `json:"message_index"`        //
	OutIndex           uint32 `json:"out_index"`            //
	Amount             uint64 `json:"amount"`               //
	Asset              string `json:"asset"`                //
	PkScriptHex        string `json:"pk_script_hex"`        //
	PkScriptString     string `json:"pk_script_string"`     //
	CreateTime         string `json:"create_time"`          //
	LockTime           uint   `json:"lock_time"`            //
	FlagStatus         string `json:"flag_status"`          //
	CoinDays           int64  `json:"coin_days"`            //
	AmountWithInterest int64  `json:"amount_with_interest"` //
}

TxUtxo TxUtxo

func FindMin

func FindMin(utxos []TxUtxo) TxUtxo

FindMin FindMin

type Utxos

type Utxos []TxUtxo

Utxos Utxos

func (Utxos) Len

func (c Utxos) Len() int

func (Utxos) Less

func (c Utxos) Less(i, j int) bool

func (Utxos) Swap

func (c Utxos) Swap(i, j int)

Jump to

Keyboard shortcuts

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