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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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