You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/routing/http-routing-v1.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ As such, human-readable encodings of types are preferred. This specification may
52
52
53
53
- CIDs are always string-encoded using a [multibase]-encoded [CIDv1].
54
54
- Multiaddrs are string-encoded according to the [human-readable multiaddr specification][multiaddr].
55
-
- Peer IDs are string-encoded according [PeerID string representation specification][peer-id-representation]: either a Multihash in Base58btc, or a CIDv1 with libp2p-key (`0x72`) codec.
55
+
- Peer IDs are string-encoded according [PeerID string representation specification][peer-id-representation]: either a Multihash in Base58btc, or a CIDv1 with libp2p-key (`0x72`) codec in Base36 or Base32.
56
56
- Multibase bytes are string-encoded according to [the Multibase spec][multibase], and SHOULD use base64.
57
57
- Timestamps are Unix millisecond epoch timestamps.
58
58
@@ -68,7 +68,7 @@ This API uses a standard version prefix in the path, such as `/v1/...`. If a bac
68
68
69
69
#### Path Parameters
70
70
71
-
-`cid` is the [CID](https://github.com/multiformats/cid) to fetch provider records for.
71
+
-`cid` is the [CID](https://github.com/multiformats/cid) to fetch provider records for (preferably normalized to a CIDv1 in Base32, to maximize HTTP cache hits).
72
72
73
73
#### Request Query Parameters
74
74
@@ -148,7 +148,7 @@ Each object in the `Providers` list is a record conforming to a schema, usually
148
148
#### Path Parameters
149
149
150
150
-`peer-id` is the [Peer ID](https://github.com/libp2p/specs/blob/master/peer-ids/peer-ids.md) to fetch peer records for,
151
-
represented as a CIDv1 encoded with `libp2p-key` codec.
151
+
represented as either a Multihash in Base58btc, or a CIDv1 with libp2p-key (`0x72`) codec (in Base36 or Base32).
0 commit comments