constants

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: BSD-3-Clause Imports: 3 Imported by: 304

Documentation

Index

Constants

View Source
const (
	// NodeIDPrefix is used to denote node addresses rather than other
	// addresses.
	NodeIDPrefix string = "NodeID-"

	// SecretKeyPrefix is used to denote secret keys rather than other byte
	// arrays.
	SecretKeyPrefix string = "PrivateKey-"
)
View Source
const (
	// Name of the platform
	PlatformName = "avalanche"

	// Name of the avalanche application
	AppName = "avalanchego"
)

Const variables to be exported

View Source
const (
	MainnetID  uint32 = 1
	CascadeID  uint32 = 2
	DenaliID   uint32 = 3
	EverestID  uint32 = 4
	TestnetID  uint32 = EverestID
	LocalID    uint32 = 12345
	UnitTestID uint32 = 10

	MainnetName  = "mainnet"
	CascadeName  = "cascade"
	DenaliName   = "denali"
	EverestName  = "everest"
	TestnetName  = "testnet"
	LocalName    = "local"
	UnitTestName = "testing"

	MainnetHRP  = "avax"
	CascadeHRP  = "cascade"
	DenaliHRP   = "denali"
	EverestHRP  = "everest"
	LocalHRP    = "local"
	UnitTestHRP = "testing"
	FallbackHRP = "custom"
)

Const variables to be exported

View Source
const (
	// Request ID used when sending a Put message to gossip an accepted container
	// (ie not sent in response to a Get)
	GossipMsgRequestID = math.MaxUint32
)

Const variables to be exported

Variables

Variables to be exported

Functions

func GetHRP

func GetHRP(networkID uint32) string

GetHRP returns the Human-Readable-Part of bech32 addresses for a networkID

Types

This section is empty.

Jump to

Keyboard shortcuts

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