Documentation ¶
Index ¶
- func GenerateAPIKey(leaderPrivKey ed25519.PrivateKey) (string, error)
- func GenerateLeaderKeys() (ed25519.PublicKey, ed25519.PrivateKey, error)
- func LoadLeaderPrivKey(filename string) (ed25519.PrivateKey, error)
- func LoadLeaderPubKey(filename string) (ed25519.PublicKey, error)
- func ValidateAPIKey(leaderPubKey ed25519.PublicKey, apikey string) error
- func WriteLeaderPrivKey(filename string, privKey ed25519.PrivateKey) error
- func WriteLeaderPubKey(filename string, pubKey ed25519.PublicKey) error
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAPIKey ¶
func GenerateAPIKey(leaderPrivKey ed25519.PrivateKey) (string, error)
func GenerateLeaderKeys ¶
func GenerateLeaderKeys() (ed25519.PublicKey, ed25519.PrivateKey, error)
func LoadLeaderPrivKey ¶
func LoadLeaderPrivKey(filename string) (ed25519.PrivateKey, error)
func WriteLeaderPrivKey ¶
func WriteLeaderPrivKey(filename string, privKey ed25519.PrivateKey) error
Types ¶
Click to show internal directories.
Click to hide internal directories.