Documentation ¶
Index ¶
- func MarshalAddrs[T p2p.Addr](xs []T) []string
- func MarshalPrivateKey(privKey inet256.PrivateKey) []byte
- func MarshalPrivateKeyPEM(privateKey inet256.PrivateKey) ([]byte, error)
- func ParseAddrs[T p2p.Addr](parser p2p.AddrParser[T], xs []string) ([]T, error)
- func ParsePrivateKey(data []byte) (inet256.PrivateKey, error)
- func ParsePrivateKeyPEM(data []byte) (inet256.PrivateKey, error)
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 ParsePrivateKey ¶
func ParsePrivateKey(data []byte) (inet256.PrivateKey, error)
func ParsePrivateKeyPEM ¶
func ParsePrivateKeyPEM(data []byte) (inet256.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.