common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StakeName = "stake"
	StakeDec  = 1000000000000000000
)
View Source
const (
	FlagConfig = "config"

	FlagEthInstance      = "eth.instance"
	FlagEthGuardAddress  = "eth.guardAddress"
	FlagEthLedgerAddress = "eth.ledgerAddress"
	FlagEthKeystore      = "eth.keystore"
	FlagEthPassphrase    = "eth.passphrase"
	FlagEthPollInterval  = "eth.pollInterval"

	FlagSgnOperator      = "sgn.operator"
	FlagSgnTransactors   = "sgn.transactors"
	FlagSgnPassphrase    = "sgn.passphrase"
	FlagSgnPubKey        = "sgn.pubkey"
	FlagSgnChainID       = "sgn.chainID"
	FlagSgnNodeURI       = "sgn.nodeURI"
	FlagSgnGasPrice      = "sgn.gasPrice"
	FlagSgnTimeoutCommit = "sgn.timeoutCommit"

	FlagLogLevel     = "logLevel"
	FlagLogColor     = "logColor"
	FlagLogLongFile  = "logLongFile"
	FlagStartMonitor = "startMonitor"

	FlagCLIHome = "cli-home"
)

Variables

This section is empty.

Functions

func EnableLogLongFile

func EnableLogLongFile()

EnableLogLongFile set the log file splitter from the sgn root folder

Types

type Sig

type Sig struct {
	Signer string `json:"signer"`
	Sig    []byte `json:"sig"`
}

func AddSig

func AddSig(sigs []Sig, msg []byte, sig []byte, expectedSigner string) (newSigs []Sig, err error)

func NewSig

func NewSig(signer string, sig []byte) Sig

func (Sig) String

func (r Sig) String() string

implement fmt.Stringer

Jump to

Keyboard shortcuts

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