utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BOOT_RNZ     = "/BOOT_RNZ"
	PORT         = "4000"
	REFRESH_RATE = 15 * time.Minute
)

Variables

View Source
var (
	CREATE_ACCOUNT          = "c"
	ACCOUNT_OUTPUT_FILENAME = "o"
	PRINT_ACCOUNT_ID        = "p"
	PARSE                   = "parse"
)
View Source
var (
	CreateAccountFlag = cli.BoolFlag{
		Name:  CREATE_ACCOUNT,
		Usage: "creates a new account",
	}

	AccountOutputFileNameFlag = cli.StringFlag{
		Name:  ACCOUNT_OUTPUT_FILENAME,
		Usage: "account output file",
	}

	PrintPublicKeyFlag = cli.BoolFlag{
		Name:  PRINT_ACCOUNT_ID,
		Usage: "print account id of the newly created account",
	}

	ParseAccountFile = cli.StringFlag{
		Name:  PARSE,
		Usage: "parse an account file",
	}
)
View Source
var (
	ACCOUNT = "a"
	SEED    = "seed"
)
View Source
var (
	BootstrapAccountFlag = cli.StringFlag{
		Name:  ACCOUNT,
		Usage: "give an account file (.msa)",
	}
	BootstrapAccountSeedFlag = cli.StringFlag{
		Name:  SEED,
		Usage: "generate account with seed",
	}
)

Functions

func AccountCommandHandler

func AccountCommandHandler(ctx *cli.Context)

func BoostrapCommandHandler

func BoostrapCommandHandler(ctx *cli.Context)

func GetLibp2pAndRAPrivKey

func GetLibp2pAndRAPrivKey(filename string) (libcrypto.PrivKey, *ecdsa.PrivateKey, error)

func GetLibp2pPrivKey

func GetLibp2pPrivKey(r []byte) (libcrypto.PrivKey, error)

func GetRAPrivKey

func GetRAPrivKey(r []byte) (*ecdsa.PrivateKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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