deployment

package
v0.30.3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: Apache-2.0 Imports: 11 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 DefaultKeysExportFormat = `` /* 144-byte string literal not displayed */

Variables

View Source
var DefaultKeyExportTemplate = template.Must(template.New("KeysExport").
	Funcs(templateFuncs).Parse(DefaultKeysExportFormat))

Functions

This section is empty.

Types

type Config

type Config struct {
	Keys       map[crypto.Address]Key
	Validators []Validator
	*genesis.GenesisDoc
}

func (*Config) Dump

func (pkg *Config) Dump(templateName, templateData string) (string, error)

Dump a configuration to a template

type Key

type Key struct {
	Name       string
	Address    crypto.Address
	CurveType  string
	PublicKey  []byte
	PrivateKey []byte
	KeyJSON    json.RawMessage
}

func (*Key) Dump

func (key *Key) Dump(templateData string) (string, error)

Dump a key file to a template

type Validator

type Validator struct {
	Name        string
	Address     crypto.Address
	NodeAddress crypto.Address
}

Jump to

Keyboard shortcuts

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