p2p

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(serviceName string) *cobra.Command

func Delete

func Delete(serviceName string) *cobra.Command

func GenerateNewEd25519

func GenerateNewEd25519() (crypto.PrivKey, error)

func GetP2PKeyOrGenerateNewOne

func GetP2PKeyOrGenerateNewOne(ks *keystore.FSKeystore, nickname string) (crypto.PrivKey, error)

GetP2PKeyOrGenerateNewOne takes a nickname and either returns its corresponding private key if it doesn't exist, return the first key in the store if it doesn't exist, create a new key, store it in the keystore, then return it.

func Import

func Import(serviceName string) *cobra.Command

func List

func List(serviceName string) *cobra.Command

func Root

func Root(serviceName string) *cobra.Command

Types

type KeysConfig

type KeysConfig struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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