Documentation
¶
Overview ¶
Package chainid defines helper methods to manipulate and verify chain id used in Cosmos-SDK blockchain genesis
Index ¶
Constants ¶
View Source
const ( ChainIDSeparator = "-" ChainNameMaxLength = 30 )
Variables ¶
View Source
var ErrInvalidChainID = errors.New("invalid chain ID, format must be <chain-name>-<network-number>")
Functions ¶
func CheckChainName ¶
CheckChainName verifies the name is valid as a chain name
func NewGenesisChainID ¶
NewGenesisChainID returns the genesis chain id from the chain name and the number
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.