keypair

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(keyPath string) (crypto.PrivKey, error)

func LoadRaw

func LoadRaw(keyPath string) ([]byte, error)

func LoadRawFromEnv

func LoadRawFromEnv() []byte

Read key from ENV. key must be encoded in base64

func LoadRawFromString

func LoadRawFromString(key64 string) []byte

Read key from ENV. key must be encoded in base64

func New

func New() crypto.PrivKey

func NewPersistant

func NewPersistant(path string) ([]byte, error)

func NewRaw

func NewRaw() []byte

func Save

func Save(priv crypto.PrivKey, keyPath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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