14 Commits

Author SHA1 Message Date
idk
a91caf054e
add both base64 and base32 addresses as separate protocols, remove port from addresses to be expressed as /tcp, etc. 2018-11-30 19:55:52 -05:00
idk
54ddf83b00
Switch to using base64 i2p addresses to facilitate transport 2018-11-26 05:03:37 -05:00
idk
58c18c3ad6
Switch to using base64 i2p addresses to facilitate transport 2018-11-25 15:27:27 -05:00
idk
cf7ed7c1ad
created onionv3 and garlic multiaddrs 2018-11-15 04:11:07 -05:00
Steven Allen
faf8963c9a fix zone validator
(bug caught by fuzzer)
2018-10-18 10:35:11 +01:00
Steven Allen
41068aa69c correctly format ip4-in-6 addresses
fixes part one of #77
2018-09-30 16:41:00 -07:00
Steven Allen
6f084e635d validate ipv6 zone 2018-09-14 18:51:03 -07:00
mwnx
1f9df061aa Add "zone" multiaddr (IPv6 zone)
See [rfc4007].

Can be prefixed to "ip6" like so:

    /zone/eth0/ip6/fe80::1

This corresponds to the rfc4007 address `fe80::1%eth0`

[rfc4007] https://tools.ietf.org/html/rfc4007
2018-09-14 18:41:48 -07:00
Steven Allen
1e4c6be785 fully validate p2p addresses when decoding from bytes
Otherwise, .String() can panic.
2018-06-22 13:29:31 -07:00
Steven Allen
5416c663d5 simplify variable-length argument handling
Instead of having the transformers deal with variable length argument prefixes,
just do this in the bytesToString/stringToBytes functions.
2018-06-22 13:29:31 -07:00
Jeromy
dea70a9f19 begin transition from /ipfs/ to /p2p/ multiaddrs 2018-06-18 18:24:36 -07:00
mwnx
ae494b7f0c Fix ipv6 parser error message ("ip4" → "ip6") 2018-06-16 19:53:08 +02:00
Jakub Sztandera
72b4a6ce81
Create NewTranscoderFromFunctions function and use it 2016-11-02 17:49:29 +01:00
Jakub Sztandera
1919305418
add Transocoder functionality
Allowing multiaddr extensions to have data with
2016-10-14 11:48:19 -04:00