keygen

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveUnencryptedKeysToFile

func SaveUnencryptedKeysToFile(w io.Writer, ctnr *UnencryptedKeysContainer) error

SaveUnencryptedKeysToFile JSON encodes the container and writes to the writer.

Types

type UnencryptedKeys

type UnencryptedKeys struct {
	ValidatorKey  []byte `json:"validator_key"`
	WithdrawalKey []byte `json:"withdrawal_key"`
}

UnencryptedKeys is the inner struct of the JSON file.

type UnencryptedKeysContainer

type UnencryptedKeysContainer struct {
	Keys []*UnencryptedKeys `json:"keys"`
}

UnencryptedKeysContainer defines the structure of the unecrypted key JSON file.

Jump to

Keyboard shortcuts

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