utils

package
v1.2.0-pre Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBootstrap

func ConvertBootstrap(peers []string, devMode bool) (peer.BootstrapParams, error)

func ConvertToAddrInfo

func ConvertToAddrInfo(peers []string) ([]libp2p.AddrInfo, error)

func ConvertToMultiAddr

func ConvertToMultiAddr(addr string) (*libp2p.AddrInfo, error)

func FormatSwarmKey added in v1.1.5

func FormatSwarmKey(key string) (pnet.PSK, error)

func GenerateSwarmKey added in v1.1.5

func GenerateSwarmKey() (string, error)

func GenerateSwarmKeyFromString added in v1.1.5

func GenerateSwarmKeyFromString(data string) string

Note: This will generate a predictable key Only use if you know whjat you're doing

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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