Questions tagged [ipfs]

IPFS (the InterPlanetary File System) is a new hypermedia distribution protocol, addressed by content and identities. IPFS enables the creation of completely distributed applications. It aims to make the web faster, safer, and more open.

Filter by
Sorted by
Tagged with
0
votes
3answers
217 views

Ethereum vs InterPlanetary

I've been reading about Ethereum and it's fundamentals for a while now. I wonder what is difference between Ethereum and InterPlanetary File System ?
0
votes
1answer
108 views

IPFS dapp hosting

I have uploaded the dapp frontend folder along with contracts json files on the IPFS using ipfs add <path> ipfs name publish <hash> commands. I am running Ganache for in-memory virtual ...
0
votes
1answer
81 views

Does LemonEmail Support Perfect Forward Secrecy

LemonEmail looks like a very interesting implementation of 100% decentralized messaging system with end-to-end encryption. From what I understand from the information available, it uses the Ethereum ...
2
votes
1answer
176 views

IPFS Config on windows 10

I'm trying to execute these commands on windows 10 ./ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]' ./ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods "[\"PUT\",...
0
votes
1answer
157 views

How can I connect my static page (Dapp) to my ipfs node?

The very naive way I'm going about it is: const node = new Ipfs({ host: "xxx.ip.address.xxx"}); When I save an image from the static page, it does give me an ipfs hash back and save it to the local ...
28
votes
3answers
5k views

What is the distinction between libp2p, devp2p and RLPx?

What is the distinction between libp2p and devp2p? Do they refer to the same thing? How are they related to RLPx? In the libp2p whitepaper, dated Nov 2014, they appear to be the same thing: libp2p ...
1
vote
2answers
656 views

Uploading files on IPFS Infura

I am trying to make a dapp to upload files on IPFS Infura. I am using IpfsHttpClient in web browser by including the script <script src="https://unpkg.com/ipfs-http-client/dist/index.min.js">&...
3
votes
0answers
48 views

How do I redirect my .eth domain with eth.link?

Let's say I want to redirect somewebsite.eth.link to www.otherdomainiown.com. http://spacex.eth.link/ does this and the redirect works on chrome. However, I don't see an A record and I do see IPFS ...
1
vote
1answer
222 views

No output when writing data to IPFS and storing its hash through Solidity

So I am using truffle. Following from Creating a form in IPFS for users to enter data [check the code in answer], doing some changes: Contract name - IpfsContract.sol test.js uses the following JSON ...
1
vote
1answer
330 views

Where do you save the application data of a Dapp?

Let's say that I want to implement a Dapp similar to Facebook. Each user has its own profile, pictures and information. Usually you would use a database to store all this data. This guarantees that ...
3
votes
3answers
537 views

IPFS. Add a directory recursively with an HTTP api

Is there an HTTP api equivalent of doing: ipfs add -r resources/public where resources/public is a directory with a static website (index.html in the root, css, js etc). Doing: curl -F file=...
2
votes
1answer
670 views

Ipfs. Adding files using http request in meteor

Good day, I've spent some time trying to upload file to ipfs using http request (from meteor). Meteor.startup(() => { // code to run on server at startup Meteor.methods({ ...
1
vote
1answer
845 views

IPFS API calls and Connection Refused

I have a lot of errors using the API and I am wondering if there is anyway to debug it. When I use curl "http://127.0.0.1:5001/api/v0/object/get?arg=QmU5KhkgvweYgE3Gsr8A19uFQrq7mszx7dubcoo89cTmAV&...
2
votes
1answer
522 views

Ethereum IPFS Integration

By now i have developed few basic example apps to execute Ethereum contracts using truffle based web application in a private blockchain. I have setup an IPFS node in my local. Able to upload files ...
0
votes
1answer
39 views

Trigger a payable function to send ipfsHash back to sender

I want to make a testnetwork, a supply chain, with 10 manufacturers/addresses. For that I want to make a function that sends the saved ipfsHash, which is the information about the product that will be ...
0
votes
1answer
201 views

Upload a full directory to IPFS using ipfs (js-ipfs-http-client)

I want to upload a directory to ipfs on my browser using (js-ipfs-http-client) module. I found this old issue. https://github.com/ipfs/js-ipfs/issues/277 So I decided to use recursive way to add files ...
0
votes
1answer
504 views

Implement Web3 and IPFS on server side (backend)

How do I implement Web3 and IPFS on the server side (backend)? I am able to implement on client-side (using web3.js and ipfs.js in HTML script tags) for localhost. However, it fails when I run the ...
0
votes
4answers
2k views

How do I implement buffer/readable stream in order to add a file to IPFS?

I'm trying to upload a file from my directory to IPFS. Below is what they require from API: const files = [ { path: '/tmp/myfile.txt', content: (Buffer or Readable stream) } ] ipfs....
2
votes
2answers
372 views

How to point a domain registered with ENS to IPFS content?

After securing a .eth domain, how do you point the domain to resolve to an IPFS hash?
2
votes
1answer
103 views

IPFS add and read file from node

I am currently playing around with IPFS in a docker container. I am able to send HTTP requests to the API using curl. I created a small text file with some text. I would like to add the file with the ...
0
votes
2answers
879 views

Upload file to IPFS from HTML page

I am trying to upload the file to IPFS from HTML page and below is my code but I am getting below error. Uncaught ReferenceError: Buffer is not defined I have imported below statements <script ...
4
votes
2answers
120 views

Who hosts IPFS?

I'm trying to get my head wrapped around how IPFS actually stores files. There is no IPFS coin, so who is hosting these files and are they getting paid to host them?
3
votes
1answer
654 views

How to keep IPFS files alive online forever?

I'm using IPFS to host a website and I need a way to keep the website files online all the time. I know that ipfs has a garbage collector that removes the content after 24 hours. And that if I pin ...
1
vote
1answer
28 views

ipfs files ls not showing all the files uploaded to it

When I am using ipfs files ls, it is not showing all the files which are being added. But when I am searching the files in ipfs explorer through the hash I am getting the file.
93
votes
5answers
44k views

What is the difference between Swarm and IPFS?

IPFS seems a little slow on existing dapps. will Swarm load content more quickly? Also- is there a roadmap for swarm?
1
vote
1answer
65 views

company using IPFS in their application

I am learning IPFS these days and curious about if any company is using IPFS to save data. When we upload file into IPFS, we get a hash and can use the hash to get access to the file content. But in ...
1
vote
2answers
375 views

Storing data on IPFS using KMS and ethereum

I am trying to build a blockchain on ethereum but keeping the data related to blocks in some distributed file storage system like IPFS or Storj and storing the hash of data in blocks. But we need our ...
2
votes
1answer
87 views

Error while importing Libp2p package in blockchain

I have installed some js-libp2p's packages on my Ethereum Blockchain-ipfs project and I wrote some codes like below. const TCP = require('libp2p-tcp'); const MulticastDNS = require('libp2p-mdns'); ...
0
votes
2answers
350 views

DApp using IPFS Ganache and MetaMask

I am following a tutorial (hosted by dappuniversity) on youtube regarding DApps using IPFS. I have done exactly everything as mentioned in the tutorial but i get this errors: GET https://ipfs.io/ipfs/...
1
vote
1answer
32 views

Best Practice for Arrays you will Write to Often

I want to build an App with an array data structure that I would like to keep private. So far, I've wanted to build it between IPFS and Ethereum. But what would be best practice for an array that I ...
0
votes
1answer
182 views

ipfs.files.add(Buffer) function causing TypeError: Cannot read property 'add' of undefined

I am trying to upload an image to ipfs using ipfs.files.add() function but it is causing me this error Uncaught TypeError: Cannot read property 'add' of undefined at App.onSubmit (App.js:70) at ...
0
votes
1answer
74 views

Ethereum & IPFS Storage Question

Etherum vs IPFS for Long Terms Storage of Critical document files? Storing high priority files on the blockchain. I am also writing a smart contract for the files on Etherum. I have concerns about ...
1
vote
0answers
18 views

IPFS file uploading issue [closed]

I just installed IPFS version 0.4.22 on my Mac. When I try to upload/add a file in TERMINAL - using the following command: ipfs add myLogo.jpg I get this error: Error: ipfs repo needs migration ...
2
votes
2answers
132 views

Possible to search swarm or blockchain?

I'm getting my feet wet in this blockchain world and looking to build a dapp based on Ethereum for maintaining an inventory of products. About 400,000 items that can be updated, removed or added to by ...
0
votes
1answer
84 views

What would an Etheruem-like blockchain look like if each block were just an IPFS hash?

I see a lot of people tout the enormous benefits of using IPFS as a store of data. Meanwhile, the Ethereum blockchain is over 1TB in size, with quesitonable need to keep the earlier blocks. In ...
2
votes
1answer
144 views

ipfs.infura.io for IPFS gateway and pinning

I'm using Infura API for initializing IPFS. IPFS uses garbage collector to clean 2 weeks old unpinned data in public gateway. So, if I'll pin my hash is it possible that IPFS will still delete my ...
0
votes
1answer
37 views

dApp design and security question

I'm designing a dApp where users can submit work they've done (files) to ipfs/swarm. To get credit for the work they then reference the hash of the files when calling a smart contract. What are some ...
1
vote
1answer
504 views

I am new to IPFS. Is there any need for checking where the IPFS file originates from for security purposes?

I want to identify the ipfs source node. Is it necessary to do that in IPFS?
0
votes
0answers
28 views

Error: IPFSInbox has not been deployed to detected network

It's my first time writing smart contract in solidity and using IPFS to develop my dapp. I don't know how to solve it and why it pops up this errorNo web3 instance injected, using Local web3. Error: ...
25
votes
4answers
7k views

How to store IPFS hash using bytes?

Following Q/A (What datatype should I use for an IPFS address hash?) recommend us to use bytes to store IPFS hash. I was using following example(https://github.com/AdrianClv/ethereum-ipfs/blob/master/...
1
vote
1answer
315 views

Replication of Files across a Private IPFS Network

I want to create a private IPFS Network in which nodes should be able to add data and share the Hash with other nodes in the network so that they will be able to access the files and make them ...
0
votes
0answers
58 views

How to use the ipfs.add() function?

Here is a function that I have written to add a file on clicking a button, which calls the function 'onSubmit' onSubmit = async (event) => { event.preventDefault() await ipfs.add(this.state....
5
votes
1answer
2k views

IPFS hash algorithm

How actually is an IPFS hash (ipfs add) is generated? I'm looking for step by step operations done on input(bytes/string) to get output(in this case IPFSHash)
1
vote
1answer
87 views

Key-value immutable storage: on-chain vs IPFS

I'm currently working on a D-App for a client. It's basically a temper-proof immutable storage of 'objects', each object being defined with 8 key-value pairs (strings) and a collection of pictures. ...
1
vote
1answer
31 views

Does it align with the base concept of blockchain, if one stores the hash value generated from IPFS network in a database?

A friend of mine utilized IPFS to store data files regarding some user info.But for an android application of the same, he retrieved all hash values(same user but different files) and stored it in a ...
0
votes
1answer
99 views

What's the difference between ipfs.infura.io vs ipfs.io

When saving ipfs hash, i find that ipfs.infura.io is x10 faster than ipfs.io. If the public gateway (ipfs.io) has a negative impact on user experience due to its slowness, why people would use that ...
0
votes
2answers
544 views

IPFS Installation Error

I am trying to install IPFS on my macbook bro with and following instructions from here: https://ipfs.io/docs/install/#installing-from-a-prebuilt-package When I try to run the install bash script: ...
1
vote
1answer
122 views

Implementing a state channel

I am trying to build a platform to play TicTacToe using DApps. The players invite others by placing a stake and then opponents accept it. The first turn is recorded on chain by calling a function in ...
0
votes
0answers
57 views

How to use the ipfs.get()?

I am new to IPFS. I added a file in IPFS and then, pinned it. Now, I am trying to retrieve the file. I am writing the code in React. Hence I used the following code: ipfs.get('/ipfs/...
0
votes
1answer
47 views

is it possible to use IPFS Hash to ensure file integrity?

My question is if i can use the IPFS Reference/Hash to ensure file integrity. In other words if i have a file can i use a specific Hashfunction to ensure that the generated Hash of that file is equal ...