mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2024-12-26 23:30:27 +08:00
ab2bf16021
* remove the Protector interface, introduce a PSK type * move decoding of the v1 PSK here
8 lines
290 B
Go
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
|