README.md 2.36 KB
Newer Older
Steven Allen's avatar
Steven Allen committed
1
# go-conn-security-multistream
Steven Allen's avatar
Steven Allen committed
2

3
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](https://protocol.ai)
Yusef Napora's avatar
Yusef Napora committed
4
[![](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](https://libp2p.io/)
5
[![](https://img.shields.io/badge/freenode-%23libp2p-yellow.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p)
Yusef Napora's avatar
Yusef Napora committed
6
[![Discourse posts](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg)](https://discuss.libp2p.io)
7
[![GoDoc](https://godoc.org/github.com/libp2p/go-conn-security-multistream?status.svg)](https://godoc.org/github.com/libp2p/go-conn-security-multistream)
Steven Allen's avatar
Steven Allen committed
8

Steven Allen's avatar
Steven Allen committed
9
> Connection security multistream multiplexer
Steven Allen's avatar
Steven Allen committed
10

Steven Allen's avatar
Steven Allen committed
11
This package provides a multistream multiplexed [security transport](https://github.com/libp2p/go-conn-security). It:
Steven Allen's avatar
Steven Allen committed
12

Mansour Rahimi's avatar
Mansour Rahimi committed
13
1. Selects a security transport using multistream-select.
Steven Allen's avatar
Steven Allen committed
14 15 16 17 18
2. Secures the stream using the selected transport.

Known libp2p security transports include:

* [go-libp2p-secio](https://github.com/libp2p/go-libp2p-secio)
Mike Goelzer's avatar
Mike Goelzer committed
19
* [go-libp2p-tls](https://github.com/libp2p/go-libp2p-tls)
Steven Allen's avatar
Steven Allen committed
20 21 22

## Install

Steven Allen's avatar
Steven Allen committed
23
`go-conn-security-multistream` is a standard Go module which can be installed with:
Steven Allen's avatar
Steven Allen committed
24 25

```sh
Steven Allen's avatar
Steven Allen committed
26
go get github.com/libp2p/go-conn-security-multistream
Steven Allen's avatar
Steven Allen committed
27 28
```

29 30 31 32
This repo is [gomod](https://github.com/golang/go/wiki/Modules)-compatible, and users of
go 1.11 and later with modules enabled will automatically pull the latest tagged release
by referencing this package. Upgrades to future releases can be managed using `go get`,
or by editing your `go.mod` file as [described by the gomod documentation](https://github.com/golang/go/wiki/Modules#how-to-upgrade-and-downgrade-dependencies).
Steven Allen's avatar
Steven Allen committed
33 34 35

## Usage

Steven Allen's avatar
Steven Allen committed
36
For more information about how `go-conn-security-multistream` is used in the libp2p context, you can see the [go-libp2p-conn](https://github.com/libp2p/go-libp2p-conn) module.
Steven Allen's avatar
Steven Allen committed
37 38 39

## Contribute

Steven Allen's avatar
Steven Allen committed
40
Feel free to join in. All welcome. Open an [issue](https://github.com/libp2p/go-conn-security-multistream/issues)!
Steven Allen's avatar
Steven Allen committed
41

42
This repository falls under the libp2p [Code of Conduct](https://github.com/libp2p/community/blob/master/code-of-conduct.md).
Steven Allen's avatar
Steven Allen committed
43

44
### Want to hack on libp2p?
Steven Allen's avatar
Steven Allen committed
45

46
[![](https://cdn.rawgit.com/libp2p/community/master/img/contribute.gif)](https://github.com/libp2p/community/blob/master/CONTRIBUTE.md)
Steven Allen's avatar
Steven Allen committed
47 48 49 50

## License

MIT
51 52 53 54

---

The last gx published version of this module was: 0.1.26: QmZWmFkMm28sWeDr5Xh1LexdKBGYGp946MNCfgtLqfX73z