keys

package
v0.0.0-...-aaa359e Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyPair

type KeyPair struct {
	PrivateKey      ed25519.PrivateKey
	PublicKey       ed25519.PublicKey
	PublicKeyBase64 string
}

KeyPair is a valid Ed25519 key pair

func LoadKeyPair

func LoadKeyPair(privateKeyPath string) (*KeyPair, error)

LoadKeyPair loads key pair from private key file

func NewKeyPair

func NewKeyPair() *KeyPair

NewKeyPair returns a random new key pair

Jump to

Keyboard shortcuts

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