Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

The old IPFS URl vs URL vs ipfs:// scheme thing #17

Closed
olizilla opened this issue Mar 24, 2021 · 1 comment · Fixed by #18
Closed

The old IPFS URl vs URL vs ipfs:// scheme thing #17

olizilla opened this issue Mar 24, 2021 · 1 comment · Fixed by #18

Comments

@olizilla
Copy link
Contributor

olizilla commented Mar 24, 2021

whilst strictly correct to refer to ipfs:// scheme URLs as URIs there is something that doesn't quite sit right with referring to https://<ipfs gateway> URLs as URLs but ipfs:// scheme URLs as URIs in the minty mint output

🌿 Minted a new NFT: 
Token ID:              1
Metadata URI:          ipfs://bafybeihadb4iu2qluldbypnt564elwnq7gfhgci7njnqekmnbfuqyncq3e/metadata.json
Metadata Gateway URL:  http://localhost:8080/ipfs/bafybeihadb4iu2qluldbypnt564elwnq7gfhgci7njnqekmnbfuqyncq3e/metadata.json
Asset URI:             ipfs://bafybeidlyceq3bnf63pxszlxmnqz7jqwr22rirjvxgyxi7nwrlboou5ksa/meat-skeleton.jpg
Asset Gateway URL:     http://localhost:8080/ipfs/bafybeidlyceq3bnf63pxszlxmnqz7jqwr22rirjvxgyxi7nwrlboou5ksa/meat-skeleton.jpg

as both forms are URLs and both forms are URIs. It's worth noting that there is a defined URI flavour of ipfs address in this seminal comment The four stages of the upgrade path for path addressing. ipfs/specs#152 (comment) and that looks like dweb:/ipfs/<CID> and is not commonly seen in the wild, but we should avoid taking it's name in vain.

@olizilla
Copy link
Contributor Author

meybe Address?

🌿 Minted a new NFT: 
Token ID:              3
Metadata Address:      ipfs://bafybeihadb4iu2qluldbypnt564elwnq7gfhgci7njnqekmnbfuqyncq3e/metadata.json
Metadata Gateway URL:  http://localhost:8080/ipfs/bafybeihadb4iu2qluldbypnt564elwnq7gfhgci7njnqekmnbfuqyncq3e/metadata.json
Asset Address:         ipfs://bafybeidlyceq3bnf63pxszlxmnqz7jqwr22rirjvxgyxi7nwrlboou5ksa/meat-skeleton.jpg
Asset Gateway URL:     http://localhost:8080/ipfs/bafybeidlyceq3bnf63pxszlxmnqz7jqwr22rirjvxgyxi7nwrlboou5ksa/meat-skeleton.jpg

@olizilla olizilla changed the title The old IPFS URl vs URI vs ipfs:// scheme thing The old IPFS URl vs URL vs ipfs:// scheme thing Mar 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant