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
      }

      Source Files