serde

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: GPL-3.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalAddrs

func MarshalAddrs[T p2p.Addr](xs []T) []string

func MarshalPrivateKey

func MarshalPrivateKey(privKey inet256.PrivateKey) []byte

func MarshalPrivateKeyPEM

func MarshalPrivateKeyPEM(privateKey inet256.PrivateKey) ([]byte, error)

func ParseAddrs

func ParseAddrs[T p2p.Addr](parser p2p.AddrParser[T], xs []string) ([]T, error)

func ParsePrivateKey

func ParsePrivateKey(data []byte) (inet256.PrivateKey, error)

func ParsePrivateKeyPEM

func ParsePrivateKeyPEM(data []byte) (inet256.PrivateKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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