ethpm / py-ethpm

This library is deprecated. ethPM python tooling is now located in web3.py
MIT License
24 stars 13 forks source link

Write is_supported_content_addressed_uri #152

Closed njgheorghita closed 5 years ago

njgheorghita commented 5 years ago

What was wrong?

Already used this function in both ethpm-cli and the ipfs pinner, so it seems like it belongs here.

Cute Animal Picture

image

njgheorghita commented 5 years ago

@pipermerriam What exactly do you have in mind by '3rd party URIs'? Can you give an example? I was under the impression that it was pretty much IPFS, Github blob, Swarm (eventually) that will be supported/valid content-addressed uris.

pipermerriam commented 5 years ago

@njgheorghita bitbucket, gitlab, gists, .... ipfs-gateway uris (there can be more than one gateway, cloudflair has one). The EthPM spec is intentionally open about the definition of a content addressable URI and thus, there are tons of options out there for people to include the content hash in different URI schemes.