pnet

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: MIT Imports: 14 Imported by: 20

README

go-libp2p-pnet

Travis CI codecov.io Discourse posts

An implementation of go-libp2p-interface-pnet

Table of Contents

Usage

See Godocs

Contribute

PRs are welcome!

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT © Jakub Sztandera


The last gx published version of this module was: 3.0.5: QmTwDsJUPioMKoiuXkAmiPxL1i4tjuG5vkxJgNpiHpXb3Y

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateV1Bytes

func GenerateV1Bytes() (*[32]byte, error)

func GenerateV1PSK

func GenerateV1PSK() (io.Reader, error)

GenerateV1PSK generates new PSK key that can be used with NewProtector

func NewProtector

func NewProtector(input io.Reader) (ipnet.Protector, error)

NewProtector creates ipnet.Protector instance from a io.Reader stream that should include Multicodec encoded V1 PSK.

func NewV1ProtectorFromBytes

func NewV1ProtectorFromBytes(psk *[32]byte) (ipnet.Protector, error)

NewV1ProtectorFromBytes creates ipnet.Protector of the V1 version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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