Skip to content

Commit 363a16b

Browse files
rvaggmasih
authored andcommitted
Add transport-filecoin-piece-http & transport-ipfs-gateway-http
Ref: multiformats/multicodec#383
1 parent 5252f83 commit 363a16b

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

IPNI.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,25 +275,35 @@ simply set to `true`.
275275

276276
The reference provider currently supports Bitswap and Filecoin protocols. The structure of the
277277
metadata format for these protocols is defined
278-
in [the library](https://github.com/filecoin-project/index-provider/tree/main/metadata).
278+
in [the library](https://github.com/ipni/go-libipni/blob/main/metadata).
279279

280280
The network indexer nodes expect that metadata begins with a `uvarint` identifying the protocol,
281281
followed by protocol-specific metadata. This may be repeated for additional supported protocols.
282282
Specified protocols are expected to be ordered in increasing order.
283283

284284
* Bitswap
285285
* `uvarint`
286-
protocol `0x0900` ([`transport-bitswap`](https://github.com/multiformats/multicodec/blob/f099a91820b36bed6b90d0632a9f5ff386a2d425/table.csv#L147)
286+
protocol `0x0900` ([`transport-bitswap`](https://github.com/multiformats/multicodec/blob/8790c214e60330f7515b84653bf7dbcc2785b5cc/table.csv#L147)
287287
in the multicodec table).
288288
* no following metadata.
289289
* Filecoin Graphsync
290290
* `uvarint`
291-
protocol `0x0910` ([`transport-graphsync-filecoinv1`](https://github.com/multiformats/multicodec/blob/f099a91820b36bed6b90d0632a9f5ff386a2d425/table.csv#L148)
291+
protocol `0x0910` ([`transport-graphsync-filecoinv1`](https://github.com/multiformats/multicodec/blob/8790c214e60330f7515b84653bf7dbcc2785b5cc/table.csv#L148)
292292
in the multicodec table).
293293
* the following bytes should be a cbor encoded struct of:
294294
* PieceCID, a link
295295
* VerifiedDeal, boolean
296296
* FastRetrieval, boolean
297+
* HTTP IPFS Trustless Gateway
298+
* `uvarint`
299+
protocol `0x0920` ([`transport-filecoin-piece-http`](https://github.com/multiformats/multicodec/blob/8790c214e60330f7515b84653bf7dbcc2785b5cc/table.csv#L151)
300+
in the multicodec table).
301+
* no following metadata.
302+
* HTTP Filecoin Piece
303+
* `uvarint`
304+
protocol `0x0930` ([`transport-filecoin-piece-http`](https://github.com/multiformats/multicodec/blob/8790c214e60330f7515b84653bf7dbcc2785b5cc/table.csv#L152)
305+
in the multicodec table).
306+
* no following metadata.
297307
* HTTP
298308
* the proposed `uvarint` protocol is `0x3D0000`.
299309
* the following bytes are not yet defined.

0 commit comments

Comments
 (0)