ipfs-desk | web app for ipfs | Cryptocurrency library
kandi X-RAY | ipfs-desk Summary
kandi X-RAY | ipfs-desk Summary
web app for ipfs
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ipfs-desk
ipfs-desk Key Features
ipfs-desk Examples and Code Snippets
Community Discussions
Trending Discussions on ipfs-desk
QUESTION
I'd like to generate a CID (Content identifier) for a file in javascript without having access to an IPFS node or the internet. I've tried using js-multihashing-async to first hash the file and js-cid to generate a CID from the hash but I get a different CID than if I just add the file to ipfs-desktop. It looks like the problem is an IPFS node chunks data and the CID is for the DAG that links the files' chunks. I've tried this library but it doesn't produce the same CID as ipfs-desktop does for the same file. This question is essentially the same as mine but none of the answers give a CID that matches the ipfs-desktop-generated CID.
...ANSWER
Answered 2020-Feb-04 at 15:27ipfs-only-hash
is the right module to use to create an IPFS CID from a file or a Buffer, without needing to start an IPFS daemon. For the same input file and the same options, it should produce the same CID.
This example is from the ipfs-only-hash
tests, where it verifies that it hashes the same buffer to the same CID as a js-ipfs node does.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ipfs-desk
cljs start figwheel lein run -m clojure.main --init scripts/figwheel.clj
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page