multiaddr: add support for onion protocol. (#542)

* multiaddr: add support for onion protocol.

* Comment `read_onion`.

* Split onion into address and port parts.
This commit is contained in:
Toralf Wittner
2018-10-08 11:13:00 +02:00
committed by Pierre Krieger
parent d81f4e264f
commit e05422c05f
4 changed files with 66 additions and 8 deletions

View File

@ -3,8 +3,11 @@
///! Implementation of [multiaddr](https://github.com/jbenet/multiaddr)
///! in Rust.
#[macro_use]
extern crate arrayref;
extern crate bs58;
extern crate byteorder;
extern crate data_encoding;
extern crate serde;
extern crate unsigned_varint;
pub extern crate multihash;