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.
Click to show internal directories.
Click to hide internal directories.