From 0f188103ec8fd97ab4fcdb8be52d480ebaa3ab38 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Tue, 24 Jun 2025 16:33:10 +1200 Subject: [PATCH 1/3] Add transport-filecoin-piece-http & transport-ipfs-gateway-http Ref: https://github.com/multiformats/multicodec/pull/383 --- IPNI.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/IPNI.md b/IPNI.md index 2ac3be3..6778d0d 100644 --- a/IPNI.md +++ b/IPNI.md @@ -275,7 +275,7 @@ simply set to `true`. The reference provider currently supports Bitswap and Filecoin protocols. The structure of the metadata format for these protocols is defined -in [the library](https://github.com/filecoin-project/index-provider/tree/main/metadata). +in [the library](https://github.com/ipni/go-libipni/blob/main/metadata). The network indexer nodes expect that metadata begins with a `uvarint` identifying the protocol, followed by protocol-specific metadata. This may be repeated for additional supported protocols. @@ -283,17 +283,27 @@ Specified protocols are expected to be ordered in increasing order. * Bitswap * `uvarint` - protocol `0x0900` ([`transport-bitswap`](https://github.com/multiformats/multicodec/blob/f099a91820b36bed6b90d0632a9f5ff386a2d425/table.csv#L147) + protocol `0x0900` ([`transport-bitswap`](https://github.com/multiformats/multicodec/blob/8790c214e60330f7515b84653bf7dbcc2785b5cc/table.csv#L147) in the multicodec table). * no following metadata. * Filecoin Graphsync * `uvarint` - protocol `0x0910` ([`transport-graphsync-filecoinv1`](https://github.com/multiformats/multicodec/blob/f099a91820b36bed6b90d0632a9f5ff386a2d425/table.csv#L148) + protocol `0x0910` ([`transport-graphsync-filecoinv1`](https://github.com/multiformats/multicodec/blob/8790c214e60330f7515b84653bf7dbcc2785b5cc/table.csv#L148) in the multicodec table). * the following bytes should be a cbor encoded struct of: * PieceCID, a link * VerifiedDeal, boolean * FastRetrieval, boolean +* HTTP IPFS Trustless Gateway + * `uvarint` + protocol `0x0920` ([`transport-filecoin-piece-http`](https://github.com/multiformats/multicodec/blob/8790c214e60330f7515b84653bf7dbcc2785b5cc/table.csv#L151) + in the multicodec table). + * no following metadata. +* HTTP Filecoin Piece + * `uvarint` + protocol `0x0930` ([`transport-filecoin-piece-http`](https://github.com/multiformats/multicodec/blob/8790c214e60330f7515b84653bf7dbcc2785b5cc/table.csv#L152) + in the multicodec table). + * no following metadata. * HTTP * the proposed `uvarint` protocol is `0x3D0000`. * the following bytes are not yet defined. From 1322a1d96d68df806cb611967b6a48e7a1713a71 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Tue, 24 Jun 2025 16:33:59 +1200 Subject: [PATCH 2/3] Update IPNI.md --- IPNI.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPNI.md b/IPNI.md index 6778d0d..9261e92 100644 --- a/IPNI.md +++ b/IPNI.md @@ -296,7 +296,7 @@ Specified protocols are expected to be ordered in increasing order. * FastRetrieval, boolean * HTTP IPFS Trustless Gateway * `uvarint` - protocol `0x0920` ([`transport-filecoin-piece-http`](https://github.com/multiformats/multicodec/blob/8790c214e60330f7515b84653bf7dbcc2785b5cc/table.csv#L151) + protocol `0x0920` ([`transport-ipfs-gateway-http `](https://github.com/multiformats/multicodec/blob/8790c214e60330f7515b84653bf7dbcc2785b5cc/table.csv#L151) in the multicodec table). * no following metadata. * HTTP Filecoin Piece From f71b30281cc3ae3ba565eaee81dd0bc12a1427e2 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Tue, 24 Jun 2025 16:34:16 +1200 Subject: [PATCH 3/3] Update IPNI.md --- IPNI.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPNI.md b/IPNI.md index 9261e92..da285bd 100644 --- a/IPNI.md +++ b/IPNI.md @@ -296,7 +296,7 @@ Specified protocols are expected to be ordered in increasing order. * FastRetrieval, boolean * HTTP IPFS Trustless Gateway * `uvarint` - protocol `0x0920` ([`transport-ipfs-gateway-http `](https://github.com/multiformats/multicodec/blob/8790c214e60330f7515b84653bf7dbcc2785b5cc/table.csv#L151) + protocol `0x0920` ([`transport-ipfs-gateway-http`](https://github.com/multiformats/multicodec/blob/8790c214e60330f7515b84653bf7dbcc2785b5cc/table.csv#L151) in the multicodec table). * no following metadata. * HTTP Filecoin Piece