nodesync

package
v0.9.5-hsm Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2018 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddressFlag = cli.StringFlag{
		Name:  "address",
		Usage: "Node address to connect",
	}

	NodePINFlag = cli.StringFlag{
		Name:  "nodePIN",
		Usage: "NodePIN to be checked in Node",
	}

	PwdFlag = cli.StringFlag{
		Name:  "pwd",
		Usage: "password to decrypt keystore",
	}

	HsmFlags = []cli.Flag{
		AddressFlag,
		NodePINFlag,
		PwdFlag,
	}
)
View Source
var (
	NodeSignKey *ecdsa.PrivateKey
)

Functions

func GetSinger

func GetSinger() common.Address

func Nodesync

func Nodesync(ctx *cli.Context) error

func SignHash

func SignHash(acc accounts.Account, hash []byte) ([]byte, error)

Types

type NodeContext

type NodeContext struct {
	Address string
	NodePIN string
	// contains filtered or unexported fields
}

func ParseNodeContext

func ParseNodeContext(c *cli.Context) (*NodeContext, error)

Jump to

Keyboard shortcuts

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