service

package
v0.0.0-...-7505a0c Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyStoreDirFlag = common.DirectoryFlag{
		Name:  "keystore",
		Usage: "Directory for the keystore (default = inside the homedir)",
	}
)

Functions

This section is empty.

Types

type AccountApi

type AccountApi struct {
	Wallet *accountCommponent.Wallet
}

func (*AccountApi) AddressList

func (accountapi *AccountApi) AddressList() ([]*crypto.CommonAddress, error)

func (*AccountApi) Close

func (accountapi *AccountApi) Close()

func (*AccountApi) CreateAccount

func (accountapi *AccountApi) CreateAccount() (*crypto.CommonAddress, error)

CreateAccount create a new account and return address

func (*AccountApi) DumpPrikey

func (accountapi *AccountApi) DumpPrikey(address *crypto.CommonAddress) (*secp256k1.PrivateKey, error)

DumpPrikey dumpPrivate

func (*AccountApi) Lock

func (accountapi *AccountApi) Lock() error

Lock lock the wallet to protect private key

func (*AccountApi) Open

func (accountapi *AccountApi) Open(password string) error

func (*AccountApi) UnLock

func (accountapi *AccountApi) UnLock(password string) error

UnLock unlock the wallet

type AccountService

type AccountService struct {
	// contains filtered or unexported fields
}

CliService provides an interactive command line window

func (*AccountService) Api

func (accountService *AccountService) Api() []app.API

Api api none

func (*AccountService) Flags

func (accountService *AccountService) Flags() []cli.Flag

Flags flags enable load js and execute before run

func (*AccountService) Init

func (accountService *AccountService) Init(executeContext *app.ExecuteContext) error

Init set console config

func (*AccountService) Name

func (accountService *AccountService) Name() string

Name name

func (*AccountService) Start

func (accountService *AccountService) Start(executeContext *app.ExecuteContext) error

func (*AccountService) Stop

func (accountService *AccountService) Stop(executeContext *app.ExecuteContext) error

Jump to

Keyboard shortcuts

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