extra

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExtraCommand = cli.Command{
		Name:  "extra",
		Usage: "qbft extraData manipulation",
		Subcommands: []cli.Command{
			cli.Command{
				Action:    decode,
				Name:      "decode",
				Usage:     "To decode an qbft extraData",
				ArgsUsage: "<extra data>",
				Flags: []cli.Flag{
					extraDataFlag,
				},
				Description: `
		This command decodes extraData to vanity and validators.
		`,
			},
			cli.Command{
				Action:    encode,
				Name:      "encode",
				Usage:     "To encode an qbft extraData",
				ArgsUsage: "<config file> or \"0xValidator1,0xValidator2...\"",
				Flags: []cli.Flag{
					configFlag,
					validatorsFlag,
					vanityFlag,
				},
				Description: `
		This command encodes vanity and validators to extraData. Please refer to example/config.toml.
		`,
			},
		},
	}
)

Functions

func Decode

func Decode(extraData string) (*types.QBFTExtra, error)

func Encode

func Encode(vanity string, validators []common.Address) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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