pkey

package
v0.0.0-...-480b165 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateIdentity

func GenerateIdentity(path string) (crypto.PrivKey, error)

GenerateIdentity writes a new random private key to the given path.

func LoadIdentity

func LoadIdentity(path string) (crypto.PrivKey, error)

LoadIdentity reads a private key from the given path and, if it does not exist, generates a new one.

func ReadIdentity

func ReadIdentity(path string) (crypto.PrivKey, error)

ReadIdentity reads a private key from the given path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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