IPFS.

Publication

Partagez vos connaissances.

IPFS moderator.
Mar 22, 2024
Questions et Réponses avec des Experts

State of CARv1 vs CARv2 for IPFS Gateway Car File Requests

I'm looking to understand the current status of CARv1 versus CARv2 when requesting a car file via an IPFS gateway for downstream implementations. Will the IPFS gateway implementations consistently return v1 encoded car files, or is there a possibility that v2 might be utilized instead? Any insights on the prevalence and support for CARv2 in IPFS gateway implementations would be greatly appreciated.

  • IPFS
0
1
Partager
Commentaires
.

Réponses

1
IPFS moderator.
Mar 22 2024, 12:34

To specify the explicit version in the content type header, you can use the following format: Content-Type: application/vnd.ipld.car;version=1. This specification will be recognized by valid gateway implementations, as outlined in the documentation provided by IPFS: Trustless Gateway Specifications.

It is worth noting that utilizing version 2 on a trustless gateway may not be the most practical approach, as there is currently no cost-effective method to verify that the index has not been altered.

Regarding the format compatibility, it is possible to read a carv1 stream and simultaneously generate the v2 index incrementally. However, it is uncertain whether this functionality has been implemented in the car libraries.

0
Réponse officielle
Commentaires
.

Connaissez-vous la réponse ?

Veuillez vous connecter et la partager.

The InterPlanetary File System (IPFS) is a protocol, hypermedia and file sharing peer-to-peer network for storing and sharing data in a distributed file system.

95Publications95Réponses
Sui.X.Peera.

Gagne ta part de 1000 Sui

Gagne des points de réputation et obtiens des récompenses pour avoir aidé la communauté Sui à se développer.