sc

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0, BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCommittee = []int{0, 1, 2, 3}

Functions

func Deploy

func Deploy(params *DeployParams) (*address.Address, error)

Types

type Config

type Config struct {
	ShortName   string
	Name        string
	ProgramHash string
	// contains filtered or unexported fields
}

func (*Config) Address

func (c *Config) Address() *address.Address

func (*Config) Alias added in v0.0.2

func (c *Config) Alias() string

func (*Config) BootupData

func (c *Config) BootupData() *registry.BootupData

func (*Config) Committee

func (c *Config) Committee() []int

func (*Config) Deploy

func (c *Config) Deploy(sigScheme signaturescheme.SignatureScheme) error

func (*Config) HandleCmd

func (c *Config) HandleCmd(args []string, commands map[string]func([]string))

func (*Config) HandleSetCmd

func (c *Config) HandleSetCmd(args []string)

func (*Config) Href

func (c *Config) Href() string

func (*Config) IsAvailable

func (c *Config) IsAvailable() bool

func (*Config) PrintUsage

func (c *Config) PrintUsage(s string)

func (*Config) Quorum

func (c *Config) Quorum() uint16

func (*Config) SetAddress

func (c *Config) SetAddress(address string)

func (*Config) SetCommittee

func (c *Config) SetCommittee(indexes []int)

func (*Config) SetQuorum

func (c *Config) SetQuorum(n uint16)

type DeployParams

type DeployParams struct {
	Quorum      uint16
	Committee   []int
	Description string
	ProgramHash string
	SigScheme   signaturescheme.SignatureScheme
}

Directories

Path Synopsis
dwf
fa
fr
tr

Jump to

Keyboard shortcuts

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