- 29 Feb, 2020 2 commits
-
-
Steven Allen authored
feat: add wss protocol
-
Steven Allen authored
Now that we define all protocols in this package, we might as well add wss. fixes #72
-
- 04 Feb, 2020 2 commits
-
-
Steven Allen authored
Merge pull request #121 from multiformats/dependabot/go_modules/github.com/multiformats/go-multihash-0.0.13 Bump github.com/multiformats/go-multihash from 0.0.10 to 0.0.13
-
dependabot-preview[bot] authored
Bumps [github.com/multiformats/go-multihash](https://github.com/multiformats/go-multihash) from 0.0.10 to 0.0.13. - [Release notes](https://github.com/multiformats/go-multihash/releases) - [Commits](https://github.com/multiformats/go-multihash/compare/v0.0.10...v0.0.13) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
- 29 Jan, 2020 4 commits
-
-
Steven Allen authored
Merge pull request #119 from multiformats/dependabot/go_modules/github.com/multiformats/go-varint-0.0.2 Bump github.com/multiformats/go-varint from 0.0.1 to 0.0.2
-
dependabot-preview[bot] authored
Bumps [github.com/multiformats/go-varint](https://github.com/multiformats/go-varint) from 0.0.1 to 0.0.2. - [Release notes](https://github.com/multiformats/go-varint/releases) - [Commits](https://github.com/multiformats/go-varint/compare/v0.0.1...v0.0.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
Steven Allen authored
Merge pull request #118 from multiformats/dependabot/go_modules/github.com/multiformats/go-multihash-0.0.10 Bump github.com/multiformats/go-multihash from 0.0.8 to 0.0.10
-
dependabot-preview[bot] authored
Bumps [github.com/multiformats/go-multihash](https://github.com/multiformats/go-multihash) from 0.0.8 to 0.0.10. - [Release notes](https://github.com/multiformats/go-multihash/releases) - [Commits](https://github.com/multiformats/go-multihash/compare/v0.0.8...v0.0.10) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
- 10 Dec, 2019 1 commit
-
-
Steven Allen authored
feat: switch to /p2p multiaddrs by default
-
- 09 Dec, 2019 2 commits
-
-
Steven Allen authored
Validate bytes when parsing string
-
Aratz M. Lasa authored
Documented Transcoder functions, and fixed ip6zone string validation
-
- 06 Nov, 2019 1 commit
-
-
bigs authored
fix: minimal varint decoding
-
- 01 Nov, 2019 1 commit
-
-
Steven Allen authored
-
- 19 Sep, 2019 4 commits
-
-
Steven Allen authored
* Enforce minimal varint encoding when decoding multiaddrs. * Ensure codecs fit in 32bit integers for compatibility. We can increase the size, but we'd need to change the `Protocol.Codec` type from `int` to `uint64`.
-
Steven Allen authored
-
Steven Allen authored
feat: add dns support
-
Steven Allen authored
This is a defacto standard and is used by js-libp2p. Ported from https://github.com/multiformats/go-multiaddr-dns/pull/17. This was decided in https://github.com/multiformats/multiaddr/issues/22.
-
- 18 Sep, 2019 4 commits
-
-
-
godcong authored
move dns protocol definitions (https://github.com/multiformats/go-multiaddr-dns/blob/3974bf3f84c52825588fdcc0fd0e0aa7953ab5ff/dns.go#L11)
-
godcong authored
move ws protocol definitions (https://github.com/libp2p/go-ws-transport/blob/ec8d1818a2e6edad2496410cbc554df6fe930ea2/websocket.go#L23)
-
godcong authored
move protocol definitions (https://github.com/libp2p/go-libp2p-circuit/blob/master/transport.go#L13-L24)
-
- 20 May, 2019 3 commits
-
-
Steven Allen authored
forbid empty multiaddrs
-
Steven Allen authored
-
Steven Allen authored
fixes #104
-
- 17 May, 2019 2 commits
-
-
Steven Allen authored
improve parse error
-
Steven Allen authored
This includes the bad multiaddr in the error and should improve UX (see https://github.com/ipfs/go-ipfs/issues/4190).
-
- 19 Apr, 2019 3 commits
-
-
Lars Gierth authored
Add conformance testing
-
Lars Gierth authored
-
Lars Gierth authored
This patch adds a go-multiaddr CLI to aid in testing this implementation of multiaddr. It takes a multiaddr in string or packed form as input, and prints detailed information about the multiaddr. This tool can be useful beyond testing, of course. Another addition is a Makefile target for running the new multiaddr conformance test suite. This test suite lives at https://github.com/multiformats/multiaddr and is fetched to be run against our new go-multiaddr CLI. This target is to be run in CI Neither the test suite nor the CLI are complete yet. Currently the output looks like this: ``` > go run ./multiaddr /ip4/192.0.2.42/tcp/443 | jq . { "string": "/ip4/192.0.2.42/tcp/443", "stringSize": "23", "packed": "0x04c000022a0601bb", "packedSize": "8", "components": [ { "string": "/ip4/192.0.2.42", "stringSize": "15", "packed": "0x04c000022a", "packedSize": "5", "value": "192.0.2.42", "rawValue": "0xc000022a", "valueSize": "4", "protocol": "ip4", "codec": "4", "uvarint": "0x04", "lengthPrefix": "" }, { "string": "/tcp/443", "stringSize": "8", "packed": "0x0601bb", "packedSize": "3", "value": "443", "rawValue": "0x01bb", "valueSize": "2", "protocol": "tcp", "codec": "6", "uvarint": "0x06", "lengthPrefix": "" } ] } ``` And the Makefile target: ``` > make conformance go get -d -v . go build -o tmp/multiaddr/test/go-multiaddr ./multiaddr cd tmp/multiaddr/test && MULTIADDR_BIN="./go-multiaddr" go test -v === RUN TestGodog MULTIADDR_BIN="./go-multiaddr" Feature: Multiaddr Scenario: Banana # multiaddr.feature:3 Given the multiaddr /ip4/192.0.2.42/tcp/443 # main_test.go:81 -> github.com/multiformats/multiaddr/test_test.theMultiaddr Then the packed form is 0x04c000022a0601bb # main_test.go:98 -> github.com/multiformats/multiaddr/test_test.thePackedFormIs And the packed size is 8 bytes # main_test.go:105 -> github.com/multiformats/multiaddr/test_test.thePackedSizeIs And the components are: # main_test.go:126 -> github.com/multiformats/multiaddr/test_test.theComponentsAre | string | stringSize | packed | packedSize | value | valueSize | protocol | codec | uvarint | lengthPrefix | rawValue | | /ip4/192.0.2.42 | 15 | 0x04c000022a | 5 | 192.0.2.42 | 4 | ip4 | 4 | 0x04 | | 0xc000022a | | /tcp/443 | 8 | 0x0601bb | 3 | 443 | 2 | tcp | 6 | 0x06 | | 0x01bb | Scenario: Banana #2 # multiaddr.feature:12 Given the multiaddr 0x04c000022a0601bb # main_test.go:81 -> github.com/multiformats/multiaddr/test_test.theMultiaddr Then the string form is /ip4/192.0.2.42/tcp/443 # main_test.go:112 -> github.com/multiformats/multiaddr/test_test.theStringFormIs And the string size is 23 bytes # main_test.go:119 -> github.com/multiformats/multiaddr/test_test.theStringSizeIs And the components are: # main_test.go:126 -> github.com/multiformats/multiaddr/test_test.theComponentsAre | string | stringSize | packed | packedSize | value | valueSize | protocol | codec | uvarint | lengthPrefix | rawValue | | /ip4/192.0.2.42 | 15 | 0x04c000022a | 5 | 192.0.2.42 | 4 | ip4 | 4 | 0x04 | | 0xc000022a | | /tcp/443 | 8 | 0x0601bb | 3 | 443 | 2 | tcp | 6 | 0x06 | | 0x01bb | 2 scenarios (2 passed) 8 steps (8 passed) 3.187755ms --- PASS: TestGodog (0.00s) PASS ok github.com/multiformats/multiaddr/test 0.012s ```
-
- 06 Apr, 2019 8 commits
- 05 Apr, 2019 1 commit
-
-
idk authored
-
- 29 Mar, 2019 2 commits