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
1
vote
0answers
11 views

webpack packing website and upload to ipfs but node_modules not found

After webpacking the website, I upload the dist folder to ipfs. The ethereum part is working fine, however no js files (except for app.js) and node modules can be found. But as you can see in the pics,...
1
vote
0answers
20 views

ipfs with ethereum

Module not found: Can't resolve 'ipfs-api' in 'C:\Users.......\src' I have used this code //using the infura.io node, otherwise ipfs requires you to run a //daemon on your own computer/server. const ...
4
votes
0answers
65 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 ...
0
votes
1answer
41 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 ...
1
vote
1answer
30 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.
2
votes
1answer
129 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 ...
1
vote
0answers
22 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
1answer
168 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
39 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 ...
0
votes
0answers
30 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: ...
1
vote
1answer
357 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
1answer
219 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
0answers
67 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....
1
vote
1answer
36 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 ...
1
vote
1answer
128 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 ...
1
vote
1answer
69 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 ...
0
votes
1answer
52 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 ...
0
votes
0answers
73 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
105 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
0answers
45 views

Hosting pet-shop DApp on IPFS - JSON Files problem

I am trying to host DApp "pet-shop" which one of the truffle boxes on IPFS. rsyncing of src, build/contracts and ipfs add files went very well and there are plenty of peers as seeders on the network ...
1
vote
2answers
32 views

Does it align to 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 ...
2
votes
1answer
91 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
1answer
51 views

Asymmetric encryption with master Key

Is there any way i can derive private and public keypairs from a Master Key? The Master Key should be able to decrypt every encryption made with the generated Keypairs. to explain a bit further i ...
1
vote
0answers
35 views

Base58 javascript implementation [closed]

I am using IPFS-multihash method to store IPFS hash in smart contracts. For that I need to decode base58 format: QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4 to binary(as hex): ...
1
vote
0answers
121 views

Unhandled Rejection (Error): No valid “from” address specified in neither the given options, nor the default options

Unhandled Rejection (Error): No valid "from" address specified in neither the given options, nor the default options. ▶ 4 stack frames were collapsed. (anonymous function) C:/mydapp1/client/src/App.js:...
0
votes
0answers
26 views

IPFS - file stored by all users

Suppose one or many users used my fully decentralized app to store different files on IPFS. How can I keep track of all file hashes by using smart contracts?
4
votes
2answers
236 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 ...
-1
votes
1answer
46 views

Fully Decentralized Dapp [duplicate]

How can I build a fully decentralized dapp where the frontend code (.html,.css,.js) and ABI files (build/contracts/json) are stored in ipfs and contracts on test-network. But I am unable to do so ...
0
votes
0answers
52 views

NuCypher for storing file securely on IPFS

Please someone guide me how I can use NuCypher Algo for storing a file on IPFS such that only a set of people can open its ipfs-hash link. Can you tell the implementation because I am finding it ...
0
votes
1answer
53 views

Costs/efficiency of locating stored data on Ethereum

Based on the answer to this question, storing IPFS hashes on Ethereum could be done in 3 ways: Store it as a string Store it as a struct Store it in event log Ordered from most expensive to least ...
1
vote
2answers
718 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">&...
0
votes
1answer
85 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 ...
0
votes
1answer
113 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
190 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
117 views

getting error while generating key after uploading file into IPFS infura

I'm getting an error while generating key after uploading file into IPFS infura. Sample code given below var ipfsAPI = require('ipfs-http-client'); const ipfs = ipfsAPI('ipfs.infura.io', '5001', { ...
0
votes
1answer
88 views

Resource files are not not publishing in ipfs name publish

I made sample dapp application for interacting with smart contract and i developed a basic ui when i am publishing it to ipfs like i did seeing a tutorial and ipfs documentation, i can get only index....
0
votes
0answers
84 views

Migrating or representing a Microsoft SQL Database on the Chain

I am wondering what is the best way to migrate or represent a massive, 50 table, Medical Health Records SQL Database on the Blockchain. Is it best done with IPFS hash on Ethereum or is Hyperledger a ...
1
vote
1answer
641 views

how to upload file into ipfs from node js without uploading files into node js server [closed]

I need to upload multiple files into ipfs from node js. Flow: file(html,angularJS) --> node.js --> IPFS --> ipfs hash save into DB. I have sent a file from HTML(angularJS) and I got the ...
1
vote
1answer
258 views

ipfs daemon error?

bc@bc-HP-Pro-3090-Microtower-PC:~/supply-chain$ ipfs daemon --writable=true Initializing daemon... Adjusting current ulimit to 2048... Successfully raised file descriptor limit to 2048. Swarm ...
2
votes
0answers
110 views

error when trying to upload picture from ipfs

$("#image").change(function(event) { const file = event.target.files[0] reader = new window.FileReader() reader.readAsArrayBuffer(file) }); function saveOnIpfs(reader) { return new ...
4
votes
2answers
125 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?
1
vote
1answer
88 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. ...
0
votes
1answer
108 views

dApp Tech Stack

So I'm looking into building a dApp with standard app I functionality like user login/posts/likes/comments etc. Along with harnessing the power of ethereum to support betting and donations. Here is ...
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 ...
2
votes
1answer
714 views

IPFS File upload

I am working on an idea of uploading a file on IPFS. But the requirement is, the uploaded file should be available for view only to the intended group of people. The code to upload the file is in JS. ...
1
vote
1answer
304 views

Dapp User Account Storage and IPFS/infura

I'd like to build a dapp utilizing the power of the Ethereum blockchain and IPFS. Right now, my plan is to have users sign up to use the app and store their account data + files on IPFS through a ...
2
votes
1answer
79 views

Inspecting IPFS files

Is it possible to store / catalogue every file which is being published over IPFS ? Is only encryption the viable way to securely publish files over the internet ?
1
vote
0answers
96 views

Image and file storage in block chain

Is it possible to store a base64 image code as string in block chain? I know we can use IPFS or Swarm as a tool to store an image or a document, but if someone gets to know about the hash anyone can ...
0
votes
2answers
152 views

Creating a simple DApp [closed]

I want to implement the "Decentrilized Gallery", and implement it to the blockchain(ethereum) and it's kinda will work like: Basic html page with a button in the middle to choose a picture from ...
0
votes
1answer
456 views

IPFS versioning - How to get all files from the IPFS key?

Based on the below code, im able to add a file**(dataobj.txt --QmUUHKjR5ZdrrYmxpXyPrYP3eMyhv9FnRKo1Duv9stzmmw)** and publish a file and then assign to the key "myIPFSKey". Step 1: ipfs add -r ipfs/...