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
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?
28
votes
2answers
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 ...
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/...
22
votes
1answer
2k views

What would be needed to store the blockchain as a IPFS object?

In Christian Lundkvists blog post about possible uses for IPFS, he suggests that storing the Ethereum blockchain as an IPFS object could potentially decrease the size of the chain: We see the ...
20
votes
2answers
13k views

How can we integrate IPFS with ethereum in DApps?

How can integration of IPFS with ethereum be done in DApps? Which parts of a DApp will be on IPFS? Do any examples exist? If a DApp's site is hosted on github, is it not centralized?
20
votes
7answers
9k views

What are Storj and Sia and how different are they from Swarm and IPFS

I have recently discovered some blockchain based storage technologies like Storj and Sia. I have vaguely understood that they rely on their own blockchain with their own cryptocurrency. But why are ...
17
votes
7answers
16k views

Question on the terms 'distributed' and 'decentralised'

I am writing a paper on distributed ledger technologies, an umbrella term I have borrowed to put everything that has any relation to blockchains and distributed consensus. Under this umbrella term I ...
11
votes
4answers
6k views

How to add a file to IPFS using the API?

I have tried some APIs of IPFS like cat, ls. But I am not able to add the file using API. As there is no proper documentation of IPFS API calls. How can I add a file on IPFS using API?
11
votes
1answer
7k views

What are some proposed ways of storing data in Ethereum?

I keep reading that swarm or ipfs would be used for storage, but how would that work exactly? Would an ethereum contract store its data in these data blockchains? I thought ethereum smart contracts ...
10
votes
1answer
5k views

How can I store big files on the blockchain?

I can hardly create transactions larger than 100kiB. I am wondering, is it possible to store huge files (several MiB or GiB) on the blockchain? If so, how?
10
votes
5answers
1k views

IPFS conditional access control through ethereum smart contracts

This question is about combining IPFS with Ethereum smart contracts to check conditions and encryption to restrict access. One-on-one file sharing with a known recipient is not an issue. The 'sender' ...
10
votes
1answer
4k views

What datatype should I use for an IPFS address hash?

Here is an IPFS hash: QmTfCejgo2wTwqnDJs8Lu1pCNeCrCDuE4GAwkna93zdd7d. According to IPFS docs, they are base58 encoded, and I assume the Qm is metadata (because they all share this). What is the most ...
9
votes
2answers
2k views

How to access files hosted on swarm?

The swarm roadmap suggests that the orange paper series and a landing page is released on swarm. There is also an internet gateway for swarm: http://swarm-gateways.net/bzz:/theswarm.eth/ But how to ...
9
votes
1answer
5k views

Nested structs in solidity?

Is it possible to have a struct inside a struct? I am not sure about the data type internals, but I was basically trying to do something like (pseudo-code): library IpfsUtils { struct IpfsHash { ...
9
votes
1answer
677 views

Truffle framework with storage

How can I integrate truffle with swarm or ipfs for permanent document storage? Are there any libraries?
7
votes
1answer
725 views

How to develop large applications on top of blockchain?

I am trying to develop a social media platform on top of the Ethereum platform and integrate it with my currency (an ERC20 Token). This platform will allow users to post media files (articles/images/...
6
votes
2answers
2k views

Can smart contracts compute on encrypted data?

There's a ton of super technical articles out there published about this, but I cannot understand them because I don't have a PHD in cryptography. So then, put simply, can I or can I not have smart ...
6
votes
1answer
1k views

How to store and load an IPFS hash as bytes32 in contract written in Solidity [duplicate]

An IPFS hash can be expressed in hexadecimal which is 34 bytes long. Afaik it is most efficient to store fixed length values in a Ethereum contract, thus a maximum of 32 bytes (bytes32). Because the ...
6
votes
1answer
942 views

Status of Swarm vs IPFS

I have been studying ipfs for a few days.. still a newbie.. its a amazing protocol. So is Swarm. Correct me, if I am wrong, but right now ipfs cant be used for long term storage or even as a backup. ...
5
votes
3answers
2k views

How long does Infura store a file on IPFS?

You can send files to Infura's IPFS servers but I don't know about the limits. How long is it stored for? What's the size limit?
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)
5
votes
2answers
1k views

Validating IPFS hash string

From this question we know that we cannot verify ipfs hash exist beforehand. IPFS is a decentralized system, there is no central domain where you can do a lookup to find your hash. When looking ...
5
votes
2answers
911 views

How to check provided string is a valid IPFS or IPNS path?

I want to check provided string is a valid IPFS or IPNS path or not under ipfs domain. For example when I do: ipfs ls <invalid-hash> //waits keep searching ... This will not return anything ...
4
votes
3answers
1k views

Does it cost gas to access data stored on the IPFS with a smart contract?

I want to store about 4MB of data on the IPFS. I then want to create a smart contract that can access the data or a subset of the data on the IPFS. I know that data already stored on the Ethereum ...
4
votes
2answers
684 views

Modeling real world contract with Ethereum with use of Ether transaction

I’d like to take advantage of the immutability and nonrepudiable nature of the blockchain. Let’s say I enter into a bet with my friend that if it rains 10 days from now, I will pay him $100. If it ...
4
votes
1answer
591 views

IPFS Integration with dapp developed using Embark Framework

This is the contract code. pragma solidity ^0.4.2; contract SimpleStorage { uint storedData; function set(uint x) { storedData = x; ...
4
votes
2answers
114 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?
4
votes
1answer
2k views

Creating a form in IPFS for users to enter data

I wanted to create a website and upload it onto the IPFS for users to upload data (like their picture, name etc.). But how exactly can I capture all details user upload, get the IPFS Hash produced ...
4
votes
2answers
2k views

Ethereum IPFS Permission Based Access

Lets say I create a web application to store user identity documents. These documents are stored in IPFS and user details are maintained in Ethereum private blockchain. Thus once the files are created ...
4
votes
2answers
203 views

How to encrypt a file with multiple public address?

Can I encrypt a file with multiple public address such that each of them can decrypt the file using their private keys? Thus achieving a system to securely store file on IPFS which can be accessed by ...
4
votes
1answer
645 views

What are the differences between the incentivisation systems for Swarm, IPFS and STORJ?

Reading this comparison between IPFS and Swarm, I came across this section: Filecoin is a sister project of IPFS, it adds an incentivisation layer to IPFS and relies on its own altchain. Proof of ...
4
votes
3answers
939 views

How to retrieve stored data from blockchain?

I built a dapp integrating IPFS and Ethereum, in which the blockchain will store (in transaction) the links of every file uploaded to IPFS. But I want to display the IPFS links of all the files I ...
4
votes
1answer
618 views

How to use IPFS with truffle framework [duplicate]

How to use IPFS to get the hash of the document and store it on private blockchain (using go-ethereum )? consider truffle framework and solidity as contract oriented language.
4
votes
0answers
364 views

Big Data/IoT projects on Ethereum [closed]

Can you provide names of Big Data or IoT projects (other than Slock.it) currently running on Ethereum? I'm especially interested in how Big Data could use it or whether a combination of IPFS and ...
3
votes
1answer
1k views

Truffle SWARM and IPFS Integration

I am now able to use truffle to deploy my contracts in my private blockchain. Now I want to understand how to integrate truffle with SWARM and IPFS for web app deployment. It will be helpful if you ...
3
votes
3answers
464 views

RE-Encrypt file in IPFS

If I have an encrypted file in IPFS with a symmetric key that I share, can I after that decrypt and re-encrypt that file with a different key in order to revoke access?
3
votes
1answer
688 views

Sample showing how to store and retrieve a list of IPFS hash on Ethereum

I want to store a list of IPFS hash on a smart contract's function exposing a bytes32[] array. I'm using web3.js and Solidity. I have used multi-hash and/or some examples using bs58, but the value I ...
3
votes
1answer
277 views

2-phase commit between IPFS and Ethereum

I'm interested in integrating IPFS and Ethereum, i.e. by putting metadata in the blockchain / contract, and underlying assets in IPFS. Has anyone done any work bridging the two? The only way I can ...
3
votes
1answer
689 views

How long do my files stay on IPFS when I upload it?

I'm trying to grasp the concept of how IPFS works. Say if I upload 1GB of data to IPFS. How long does it stay there? Or do I have to leave my computer on at all times for the file to be live on the ...
3
votes
1answer
646 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 ...
3
votes
2answers
520 views

ipfs daemon: Gateway (readonly) server listening on

I'm not quite sure whether this is the right forum to ask this question. If I start the ipfs daemon it starts in read only mode. How can I start it in read and write mode? API server listening on /...
3
votes
1answer
517 views

How to use set and get in IPFS with Embark Framework?

I am using Embark Framework.I am trying to store a string value in IPFS and then to retrieve that string using the hash. Contract Code (simple_storage.sol) :- pragma solidity ^0.4.7; contract ...
3
votes
1answer
283 views

How does Ethereum enable self sovereign identity?

If everything on the Ethereum blockchain is public, then why is it apparently so useful for managing identity? From what I gather this has something to do with IPFS, but how does it all work? How do ...
3
votes
1answer
1k views

IPFS gateway not getting my files , Keeps on loading without any errors

After making all the client side scripts inside a folder which are needed for my website (in dist folder) checked with ipfs swarm peers : shows many results then adding the files with ipfs add -r ...
3
votes
2answers
955 views

IPFS file download

I wanted to check that is there any way i can download the IPFS file without running the local demon. I am working on a Dapp where i will be uploading the files over IPFS and sending the link of it to ...
3
votes
2answers
747 views

Writing to IPFS directly from solidity contract

Does anyone know how to add a file to IPFS directly from a solidity contract?
3
votes
2answers
324 views

IPFS and https requirements

I am testing with IPFS and http but I have an error as follows: App.js:239 ipfs add error DOMException: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV). I have this code - var zstr = '...
3
votes
1answer
585 views

Is it possible to mount ~/.ipfs folder to an external drive? [closed]

Please note that this question is related to IPFS (https://ipfs.io). Is it possible to mount ~/.ipfs folder to an external device (such as: hard-disk, network drive, WD My book etc.)? This will help ...
3
votes
1answer
594 views

Is it possible to delete files in SWARM?

If not what are some similar protocols to IPFS and SWARM that allow you to delete files?
3
votes
2answers
6k views

What's the difference between using Golang and writing code in Solidity to create a decentralized application?

I've been working on creating my first decentralized application, and I'm currently working on this tutorial which attempts to create a decentralized version of Twitter. I want to integrate an IPFS ...