pnet

package module
v0.0.0-...-d725aa0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: MIT Imports: 16 Imported by: 0

README

go-libp2p-pnet

Travis CI codecov.io

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

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