Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-secio
Commits
d2369dc6
Commit
d2369dc6
authored
Feb 23, 2021
by
Marten Seemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add deprecation notices to Transport, the constructor and the README
parent
702833a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
README.md
README.md
+7
-0
transport.go
transport.go
+4
-1
No files found.
README.md
View file @
d2369dc6
# DEPRECATION NOTICE
secio is not maintained any more, and we advise against using it.
Use
[
go-libp2p-tls
](
https://github.com/libp2p/go-libp2p-tls/
)
and
[
go-libp2p-noise
](
https://github.com/libp2p/go-libp2p-noise/
)
instead.
# go-libp2p-secio
[
![
](
https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square
)
](https://protocol.ai)
...
...
transport.go
View file @
d2369dc6
...
...
@@ -14,12 +14,15 @@ import (
// ID is secio's protocol ID (used when negotiating with multistream)
const
ID
=
"/secio/1.0.0"
// SessionGenerator constructs secure communication sessions for a peer.
// Deprecated: secio is now deprecated.
// Use TLS 1.3 (https://github.com/libp2p/go-libp2p-tls/) and Noise (https://github.com/libp2p/go-libp2p-noise/) instead.
type
Transport
struct
{
LocalID
peer
.
ID
PrivateKey
ci
.
PrivKey
}
// Deprecated: secio is now deprecated.
// Use TLS 1.3 (https://github.com/libp2p/go-libp2p-tls/) and Noise (https://github.com/libp2p/go-libp2p-noise/) instead.
func
New
(
sk
ci
.
PrivKey
)
(
*
Transport
,
error
)
{
id
,
err
:=
peer
.
IDFromPrivateKey
(
sk
)
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment