multiformats / cid

Self-describing content-addressed identifiers for distributed systems
Other
426 stars 79 forks source link

Create a cid for exist files? #47

Closed resrugam closed 2 years ago

resrugam commented 2 years ago

Hi

Is there any way to create cidc for files??

rvagg commented 2 years ago

Use ipfs add to add to IPFS and return a CID, if in JS see this thread for some ideas for how to do it without needing to add a file: https://github.com/ipfs/js-ipfs/issues/1799, which also mentions https://github.com/alanshaw/ipfs-only-hash

In future, these kinds of queries are best asked on the IPFS forum @ https://discuss.ipfs.io/ or in the #ipfs:ipfs.io matrix chat room rather than here on GitHub.