encryption

package
v0.90.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveIdentity

func SaveIdentity(identity *IdentityInfo, path string) error

Types

type IdentityInfo

type IdentityInfo struct {
	PrivateKey crypto.PrivKey
	PublicKey  crypto.PubKey
	PeerID     peer.ID
}

func GenerateIdentity

func GenerateIdentity() (*IdentityInfo, error)

func LoadIdentity

func LoadIdentity(path string) (*IdentityInfo, error)

Jump to

Keyboard shortcuts

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