go-libp2p-core/pnet/protector.go
Marten Seemann ab2bf16021
remove the Protector interface, introduce a PSK type (#118)
* remove the Protector interface, introduce a PSK type
* move decoding of the v1 PSK here
2020-03-06 17:18:20 -08:00

8 lines
290 B
Go

// Package pnet provides interfaces for private networking in libp2p.
package pnet
// A PSK enables private network implementation to be transparent in libp2p.
// It is used to ensure that peers can only establish connections to other peers
// that are using the same PSK.
type PSK []byte