crypto

package
v0.0.0-...-f73ad7d Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveNodeKey

func SaveNodeKey(nodeKey *NodeKey, filePath string) error

Types

type NodeKey

type NodeKey struct {
	PrivateKey *ed25519.PrivateKey `json:"private_key"`
}

func LoadNodeKey

func LoadNodeKey(filePath string) (*NodeKey, error)

func LoadOrGenerateNodeKey

func LoadOrGenerateNodeKey(filePath string) (*NodeKey, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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