global

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GFlagBCName string

链名

View Source
var GFlagConf string

全局Flags 配置文件路径

View Source
var GFlagCrypto string

加密类型

View Source
var GFlagHost string

节点地址

View Source
var GFlagKeys string

账户目录

Functions

func LoadAccount

func LoadAccount(cryptoType string, keyPath string) (*xaddress.Address, error)

从本地文件加载账户地址信息

func SignByPrivateKey

func SignByPrivateKey(cryptoType string, privateKey *ecdsa.PrivateKey, data []byte) ([]byte, error)

用账户私钥对数据做签名

Types

type BaseCmd

type BaseCmd struct {
	// cobra command
	Cmd *cobra.Command
}

func (*BaseCmd) GetCmd

func (t *BaseCmd) GetCmd() *cobra.Command

func (*BaseCmd) SetCmd

func (t *BaseCmd) SetCmd(cmd *cobra.Command)

Jump to

Keyboard shortcuts

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