|
1 |
| -# js-libp2p-peer-record <!-- omit in toc --> |
| 1 | +# @libp2p/peer-record <!-- omit in toc --> |
2 | 2 |
|
3 |
| -[](https://github.com/libp2p/js-libp2p-peer-record/actions/workflows/js-test-and-release.yml) |
| 3 | +[](http://libp2p.io/) |
| 4 | +[](http://webchat.freenode.net/?channels=%23libp2p) |
| 5 | +[](https://discuss.libp2p.io) |
| 6 | +[](https://codecov.io/gh/libp2p/js-libp2p-peer-record) |
| 7 | +[](https://github.com/libp2p/js-libp2p-peer-record/actions/workflows/js-test-and-release.yml) |
4 | 8 |
|
5 |
| -> Peer records are signed records that contain the address information of network peers |
| 9 | +> Used to transfer signed peer data across the network |
6 | 10 |
|
7 |
| -## Table of Contents <!-- omit in toc --> |
| 11 | +## Table of contents <!-- omit in toc --> |
8 | 12 |
|
| 13 | +- [Install](#install) |
9 | 14 | - [Description](#description)
|
10 | 15 | - [Envelope](#envelope)
|
11 | 16 | - [Usage](#usage)
|
|
18 | 23 | - [Subsystem providing a record](#subsystem-providing-a-record)
|
19 | 24 | - [Future Work](#future-work)
|
20 | 25 | - [Example](#example)
|
21 |
| -- [Installation](#installation) |
22 | 26 | - [License](#license)
|
23 |
| - - [Contribution](#contribution) |
| 27 | +- [Contribution](#contribution) |
| 28 | + |
| 29 | +## Install |
| 30 | + |
| 31 | +```console |
| 32 | +$ npm i @libp2p/peer-record |
| 33 | +``` |
24 | 34 |
|
25 | 35 | ## Description
|
26 | 36 |
|
@@ -122,7 +132,7 @@ The identify service is responsible for creating the self record when the identi
|
122 | 132 |
|
123 | 133 | #### Self record Updates
|
124 | 134 |
|
125 |
| -**_NOT_YET_IMPLEMENTED_** |
| 135 | +***NOT\_YET\_IMPLEMENTED*** |
126 | 136 |
|
127 | 137 | While creating peer records is fairly trivial, addresses are not static and might be modified at arbitrary times. This can happen via an Address Manager API, or even through AutoRelay/AutoNAT.
|
128 | 138 |
|
@@ -163,19 +173,13 @@ const map = trackedMap<string, string>({ metrics })
|
163 | 173 | map.set('key', 'value')
|
164 | 174 | ```
|
165 | 175 |
|
166 |
| -## Installation |
167 |
| - |
168 |
| -```console |
169 |
| -$ npm i @libp2p/peer-record |
170 |
| -``` |
171 |
| - |
172 | 176 | ## License
|
173 | 177 |
|
174 | 178 | Licensed under either of
|
175 | 179 |
|
176 |
| - * Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / http://www.apache.org/licenses/LICENSE-2.0) |
177 |
| - * MIT ([LICENSE-MIT](LICENSE-MIT) / http://opensource.org/licenses/MIT) |
| 180 | +- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>) |
| 181 | +- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>) |
178 | 182 |
|
179 |
| -### Contribution |
| 183 | +## Contribution |
180 | 184 |
|
181 | 185 | Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
|
0 commit comments