Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePrivateKey ¶
func GeneratePrivateKey() (ed25519.PrivateKey, error)
GeneratePrivateKey generates a new ed25519 private key. It uses OS randomness in conjunction with the current global random seed in tendermint/libs/common to generate the private key.
func GeneratePrivateKeyFromSecret ¶
func GeneratePrivateKeyFromSecret(secret []byte) ed25519.PrivateKey
GeneratePrivateKeyFromSecret hashes the secret with SHA2, and uses that 32 byte output to create the private key. NOTE: secret should be the output of a KDF like bcrypt, if it's derived from user input.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.