utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: BSD-3-Clause Imports: 6 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetworkIDFromGenesis

func NetworkIDFromGenesis(genesis []byte) (uint32, error)

Returns the network ID in the given genesis

func NewK8sNodeConfigJsonRaw

func NewK8sNodeConfigJsonRaw(
	api,
	id,
	image,
	kind,
	namespace,
	tag string,
) json.RawMessage

NewK8sNodeConfigJsonRaw returns a JSON formatted string as json.RawMessage for a kubernetes node config object (ImplSpecificConfig)

func NewLocalNodeConfigJsonRaw

func NewLocalNodeConfigJsonRaw(binaryPath string) json.RawMessage

NewLocalNodeConfigJsonRaw returns a JSON formatted string as json.RawMessage for a local node config object (ImplSpecificConfig)

func ToNodeID

func ToNodeID(stakingKey, stakingCert []byte) (ids.ShortID, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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