Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
112 votes
6 answers
55k 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?
bamos's user avatar
  • 1,944
36 votes
3 answers
8k 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 ...
Lee's user avatar
  • 8,558
34 votes
7 answers
16k views

How to store IPFS hash using bytes32?

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/...
alper's user avatar
  • 8,395
27 votes
2 answers
16k 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?
siddesh sangodkar's user avatar
24 votes
1 answer
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 ...
MrChico's user avatar
  • 1,786
21 votes
7 answers
13k 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 ...
mhham's user avatar
  • 373
20 votes
8 answers
22k 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 ...
pn7a's user avatar
  • 303
16 votes
1 answer
14k 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 { ...
bumi's user avatar
  • 348
15 votes
4 answers
15k 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?
BlockA's user avatar
  • 857
12 votes
2 answers
7k 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 ...
ZMitton's user avatar
  • 2,760
12 votes
5 answers
3k 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' ...
Nico's user avatar
  • 852
11 votes
1 answer
5k 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)
Nikola M.'s user avatar
  • 196
11 votes
1 answer
6k 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?
q9f's user avatar
  • 32.9k
11 votes
2 answers
5k 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 ...
q9f's user avatar
  • 32.9k
11 votes
1 answer
8k 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 ...
Patoshi パトシ's user avatar
9 votes
1 answer
796 views

Truffle framework with storage

How can I integrate truffle with swarm or ipfs for permanent document storage? Are there any libraries?
samurai jack's user avatar
  • 1,125
8 votes
4 answers
4k 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?
Daniel Luca CleanUnicorn's user avatar
7 votes
2 answers
4k 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 ...
zunior's user avatar
  • 1,312
7 votes
1 answer
796 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/...
furusiyya's user avatar
  • 180
6 votes
1 answer
2k 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 ...
bumi's user avatar
  • 348
6 votes
4 answers
2k 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=...
fbielejec's user avatar
  • 192
6 votes
2 answers
3k 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 ...
alper's user avatar
  • 8,395
6 votes
2 answers
2k 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 ...
alper's user avatar
  • 8,395
6 votes
1 answer
1k 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. ...
alpha_989's user avatar
  • 161
6 votes
2 answers
2k views

How to use a placeholder image during minting, and then only updating metadata with the actual URI after minting?

As per the title. I want to be able to have a placeholder image for my NFTs, something like this: https://opensea.io/collection/thealcabones Then subsequently, after launch, I then update the metadata....
Welpers's user avatar
  • 61
6 votes
0 answers
699 views

how to decode/encode ipfs for contracts

It's known that IPFS can use 2 types of CID, v0 and v1. In my contract, I let users store bytes data parameter. They can store some simple text on it or even pass the ipfs hash. This question is about ...
Nika Kurashvili's user avatar
5 votes
1 answer
3k views

Encrypting/Decrypting data on IPFS using Ethereum Public/Private key?

I would like my app to connect to a Web3 wallet, store encrypted data on IPFS, then retrieve that data and decrypt it (without the user exposing their private key to my app). Is this possible? If not, ...
FromTheAshes's user avatar
5 votes
2 answers
3k 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 ...
Susmit's user avatar
  • 1,804
5 votes
2 answers
1k views

Writing to IPFS directly from solidity contract

Does anyone know how to add a file to IPFS directly from a solidity contract?
Simon Mullaney's user avatar
5 votes
1 answer
1k 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 ...
ProGirlXOXO's user avatar
4 votes
3 answers
3k 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 ...
John DeBord's user avatar
4 votes
2 answers
718 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 ...
Anderson Tess's user avatar
4 votes
2 answers
868 views

MongoDB vs Ethereum Swarm

I am designing a DAPP. I have two options available for storage MongoDB OR Ethereum swarm(OR IPFS). As MongoDB also replicates data to multiple shards fault tolerance is available in MongoDB. What ...
Soham Lawar's user avatar
  • 2,567
4 votes
1 answer
658 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; ...
Crissi Mariam Robert's user avatar
4 votes
1 answer
1k views

Merkle Tree in IPFS

How is Merkle Tree(DAG) exactly related to IPFS? I observe that unlike Blockchain, IPFS doesn't require level wise hashing. How all data is hashed in IPFS?
Akhil Kintali's user avatar
4 votes
1 answer
3k views

Does IPFS has limits? [closed]

I need to upload 8Tb data from Ubuntu server to IPFS. Does it possible, I mean does IPFS has limits? Does this data will be online if my server down? Who really host files? Does owners of https://...
Mark Ant's user avatar
4 votes
1 answer
3k 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 ...
Rahul Kothari's user avatar
4 votes
2 answers
771 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?
now_world's user avatar
  • 155
4 votes
1 answer
1k 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 ...
Merunas Grincalaitis's user avatar
4 votes
1 answer
3k views

How to use ERC1155 with files hosted on IPFS, when files are added regularly?

I'm looking to build an ERC1155 smart contract (I'm using OpenZeppelin) that will contain NFTs whose metadata will be hosted on IPFS. About 4,000 images for now, all unique (all amount of 1). An ...
jeremy's user avatar
  • 141
4 votes
1 answer
2k views

Storing ERC721 metadata on IPFS

I wanted to store the metadata of my ERC721 tokens on IPFS. Currently, I am inheriting from OpenZeppelin ERC721.sol contract, and I saw there is a tokenURI function which returns the URI of the ...
KaiJun's user avatar
  • 113
4 votes
3 answers
2k 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 ...
Donut's user avatar
  • 537
4 votes
2 answers
920 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 ...
ak07_'s user avatar
  • 153
4 votes
3 answers
2k views

Getting rid of .json file extension when uploading NFT metadata to IPFS

I have a bunch of JSON files in a directory that I'm uploading to IPFS, to be used as NFT metadata. The problem is that after I upload them, the URI to access them looks like this: ipfs://<...
NoobWeb3Dev's user avatar
4 votes
2 answers
7k 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 ...
CryptoScroller's user avatar
4 votes
2 answers
3k 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 ...
SSS's user avatar
  • 161
4 votes
2 answers
10k 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 ...
Evan's user avatar
  • 41
4 votes
1 answer
717 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 ...
Derek Chiang's user avatar
4 votes
3 answers
1k 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 ...
Sam Gregory's user avatar
4 votes
2 answers
9k views

See an NFT Token picture in metamask

I have followed step by step this tutorial: https://medium.com/pinata/how-to-build-erc-721-nfts-with-ipfs-e76a21d8f914 Everything works like a charm. I am working on ropsten Network. I have create ...
Bob5421's user avatar
  • 1,467

1
2 3 4 5
7