common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2HexStr

func Bytes2HexStr(bytes []byte) string

Bytes2HexStr 字节数组转换为16 进制字符串

func HashTx

func HashTx(tx *txs.TxQcp) []byte

HashTx 交易哈希算法,用以验证交易

func KeepRunning

func KeepRunning(callback func(sig os.Signal))

KeepRunning 保持程序运行,监听系统信号,触发回调函数

func SignTxQcp

func SignTxQcp(tx *txs.TxQcp, prikey string, cdc *amino.Codec) error

SignTxQcp Sign Tx data for chain

func Transform

func Transform(tx *txs.TxQcp) (*tmtypes.EventDataTx, error)

Transform 将交易转换为交易事件

Types

This section is empty.

Jump to

Keyboard shortcuts

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