Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptKey ¶
EncryptKey encrypts a key and returns the encrypted byte array
func EncryptKeyFile ¶
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
func DecryptKey ¶
DecryptKey decrypts the Key from a json blob and returns the plaintext of the private key
func DecryptKeyFile ¶
DecryptKeyFile decrypts the file and returns Key
func GenAccountKey ¶
func GenAccountKey() *Key
func GenValidatorKey ¶
func GenValidatorKey() *Key
func (*Key) PrivateKey ¶
func (k *Key) PrivateKey() crypto.PrivateKey
Click to show internal directories.
Click to hide internal directories.