This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
13 lines (10 sloc)
278 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package pnet | |
| import ( | |
| "io" | |
| "github.com/libp2p/go-libp2p/core/pnet" | |
| ) | |
| // DecodeV1PSK reads a Multicodec encoded V1 PSK. | |
| // Deprecated: use github.com/libp2p/go-libp2p/core/pnet.DecodeV1PSK instead | |
| func DecodeV1PSK(in io.Reader) (PSK, error) { | |
| return pnet.DecodeV1PSK(in) | |
| } |