Questions tagged [dapp-design]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
59 views

dApps being required to explicitly ask for access to web3(when using MetaMask)

Injecting web3 into the dapp is done automatically,when using MetaMask. Web pages get access to the Blockchain when using metamask in their browser, to read addresses for tranactions, and other ...
4
votes
2answers
223 views

Native mobile Dapp - Sign transactions with user wallet

I'm starting a new project that involves a mobile Dapp and I have a question regarding signing transactions. Every mobile Dapp post that I read about offered two solutions: Use a Dapp browser, such ...
1
vote
1answer
149 views

How to identify submitted transaction to network?

I am developing an eCommerce application that has on-chain and off-chain components. The off-chain components focus on the compute and storage intensive operation while on-chain smartcontract ensure ...
2
votes
1answer
68 views

Use uint40 for time in Solidity?

My question is: Should I use uint40 for time in Solidity? All the examples I've seen use uint256 for time, however, I think it's too wasteful -- while using uint32 is maybe a little aggressive due to ...
1
vote
1answer
80 views

Would this make sense as a smart contract application? Trying to understand features and limitations

I'm starting to read up on Ethereum and smart contracts and some questions are popping up in my mind. I can understand that smart contracts can be used, for example, to make a bet for/against the ...
0
votes
1answer
19 views

Dapp Complexity via Multiple Contracts

When I look at some Dapps on github there are many separate contracts that interact with each other (eg, Augur). Thus, though each contract is simple, they refer to so many others that it is quite ...
1
vote
1answer
331 views

Why no dapps in the Google Play Store? Why Ethereum not accessible by default in smartphone?

Before I create a decentralized application, I want to know whether it already exists. I thought the first step would be to search the Google Play Store, but it appears dapps are not available on the ...
0
votes
1answer
36 views

Why Should I use Ethereum in an Online-Election(Vote) System based on ZKP(Zero-Knowledge Proof)?

I am an undergraduate student studying Ethereum in South Korea. Currently, I am developing an online election system that can be applied. At first, I came up with this idea: The system has an ETC ...
1
vote
2answers
799 views

How to display blockchain transaction receipt details in an Ethereum Dapp

In my dapp design, I wish to provide the user with an option to view Blockchain Transaction Receipt Details either by a link to sites like Etherscan or by providing full details on a separate page in ...
1
vote
3answers
55 views

Can Ethereum be used as part of a decentralised forum like StackExchange?

Can Ethereum be used as part of a decentralised forum?
1
vote
1answer
115 views

Both web3.eth.accounts.create() and web3.eth.personal.newAccount() not working

I'm making a dApp on reactjs. I wanted to create a new account and have done it trying 2 methods this.web3.eth.personal.newAccount() this.web3.eth.accounts.create() I have attached the code below(...
0
votes
1answer
17 views

dApp storage (growth) concern

My dApp allows user to save their URL when purchasing each NFT token. The obvious design would define -- struct NFT { ... string url; } However, URLs can be long. To save gas for users, I ...
0
votes
1answer
23 views

Can Dapp respond to an API evocation which in turn calls an EOA and then evoke a contract?

Can a Dapp (leveraging web3.js) respond to an API evocation from an external system which in turn calls an EOA and then evoke a contract on the blockchain? External system calls a Dapp Dapp calls a ...
0
votes
1answer
53 views

Best options to host an ethereum react dapp to a custom domain

I'm looking for best options to host an ethereum dapp created using react and drizzle, with the following requirements: It needs to be hosted in a custom domain (.com / .net / OR .io ) that I have ...
1
vote
0answers
11 views

Is there a standard for modelling smart contracts such as ERM for databases?

I want to document my Dapp including the "data structure" (i.e. the relationship between different contracts). Is there a good way of modelling smart contracts that anyone has used successfully?
0
votes
1answer
34 views

Ethereum Petabyte Storage Problem

As the need of blockchain systems grows so will be the storage issues and the cost of handling such large amounts of data. Is ethereum capable of handling petabyte storage or is it upto an ...
1
vote
1answer
19 views

Scope Issue: Not successfully storing accounts after using web3.eth.getAccounts()

I am having trouble with the following code: var accounts = [] let accounts = await web3.eth.getAccounts((error, result) => { accounts = result; console.log(accounts); }); console.log(...
0
votes
2answers
52 views

Split State Storage Contract

This is a follow-up question of Split Contract Design Pitfall Background: I have split my logic into two contracts A and B. A keeps the state and not ETH. All state change functions are only allowed ...
1
vote
1answer
41 views

Ethereum Game design idea

Is it possible to write emacs dunnet game in solidity? Not that there is any reason for the game to be on a blockchain, it is for a class assignment. I tried 2048 game. But it seems to have some ...
0
votes
1answer
155 views

Find word in string solidity

How is it possible to look for if a certain word is part of a string in solidity? let's say someone upload a string to a smart contract, this string must contain the word "solidity" to be accepted by ...
1
vote
1answer
87 views

ERC 20 or ERC 721 for my dapp?

I am currently making a game where you collect gear pieces and upgrade them. There will not be a 1-1 upgrade, but rather 3-1, meaning 3 items may or may not upgrade to 1. I am aware of the difference ...
1
vote
1answer
993 views

Smart contracts for bidding

In a scenario where a contract represents a buyer-seller agreement, sellers need to publish for each new bid a new contract/ or new entry in an array within a single same contract, and then a buyer ...
3
votes
4answers
651 views

DApps with fiat currency?

Is it possible to build DApp which can accept Fiat currency? Because for an existing business to move to blockchain, the existing users should be able to transition to DApp seamlessly. I would like to ...
0
votes
1answer
121 views

How to deploy a dapp which uses multiple blockchain

I am a newbie and started learning dapp on ethereum. Up till now, I wrote smart contracts; created frontend with html, css and js; deployed smart dapp on either private network(geth, ganache) or ...
4
votes
2answers
794 views

Collecting ERC20 balances from multiple addresses?

I'm building a dApp that involves creating unique accounts for individual users for ERC20 deposits [I keep the addresses and private keys in a centralized database], for popular ERC20 tokens like BNB, ...
2
votes
1answer
43 views

Masking Ethereum Address in a transaction [duplicate]

I want to hide the ethereum addresses of dApp users so that your transactions will not be traced by one who you have interaction earlier. The use case is actually similar to the application: Alice ...
0
votes
2answers
339 views

Deploy multiple instances of same contract

I am developing a decentralised notary app, using truffle/web3/react. It need to deploy multiple instances of a same contract. I managed to deploy multiple instances of a contract, MyContract via a ...
1
vote
1answer
122 views

Ability to easily manage attributes in Solidity Struct

Below is a very simple smart contract which has a struct Instructor which has 3 attributes right now i.e. age, fName, and lName. Now if tomorrow I wish to add a new attribute I will need to update all ...
6
votes
2answers
4k views

Typical architecture of a Dapp with a browser client

I am trying to understand the typical architecture of a Dapp with browser clients. Is the below understanding correct? [Web Browser (end user)] <==> [Server (web application/javascript <==> ...
1
vote
0answers
51 views

k-d tree in solidity for efficient search operation

Let us consider the following example contract Courses { struct Instructor { uint age; string fName; string lName; } mapping (address => Instructor) ...
1
vote
1answer
273 views

How are blockchain apps secured?

I would like to know how does the process of authentication work and how are the private keys used for signing transactions? For eg while using email : We log-in to our accounts and send as many ...
2
votes
0answers
149 views

How to make a dapp compatible with browsers like Cipher and Toshi

I wish to know how can we make a simple web based dapp compatible to run on browsers like Cipher and Toshi ? Is there any development or testing suite for these browsers that works in Rinkeby Network. ...
2
votes
1answer
571 views

Load balanced Ethereum nodes

I'm writing an application that will talk to the Ethereum network, I have decided to host my own Parity nodes in the cloud using GCP Kubernetes Engine. I set up 3 node replicas for increased ...
1
vote
1answer
83 views

Updating content o af smart contract

I have a smart contract. I want to update the contents (list of names) of that contract let's say after every 5 minutes. The names change after this set duration. My approach is to create an instance ...
0
votes
1answer
513 views

Thoughts about implementing masternodes in a ERC20 Token

I am developing a cryptocurrency on top of ethereum blockchain that will have some sort of rewarding features for the large hodlers of the coin. I know two ways of doing that: Airdrop - like Pundi X ...
2
votes
1answer
42 views

How to model mapping inside smart contract

My use case: I have to keep track of all "submitted quotations" from one person to another. My solution: For this I am keeping a mapping of uint and struct mapping (uint => quotation) ...
2
votes
2answers
523 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 ...
1
vote
1answer
291 views

Querying The Ledger And Filtering Results In Smart Contracts

I have a smart contract deployed that I use to store generic data. This generic data belongs to external parties and now they want to query the data which is easy given an ID for the array index and ...
2
votes
2answers
554 views

how to create a dapp in go?

I understand the process of development of dapp in javascript. Web3 api is used in order to access deployed contracts and truffle can be used for deployment. I want to create an api using Go language ...
3
votes
0answers
141 views

Evaluation of DApp (Smart Contract) storage concept with IPFS

i hope you can help me improve or validate my storage concept. I am glad for each suggestion. Since this is my first DApp, i might not consider all possible options for my problem. To understand the ...
0
votes
1answer
304 views

Web app to call a payable function with parameter

Let suppose we have a contract with a payable function like this: function join(address sender) payable {}; So I have an user to join, invited by a presenter which address is address. I want to ...
2
votes
1answer
382 views

The better way to integrate Ethereum payments into web application

I'm trying to find the best solution to integrate Ethereum-based payments into web application and I'm looking for advice from someone who already faced this task. My case: Online-gambling solution ...
0
votes
2answers
421 views

Why use SafeMath library?

I read that whenever you are performing arithmetic operations in a function of a smart contract, you should use SafeMath library. What is the reason for using SafeMath library? Also, what are the ...
0
votes
1answer
360 views

Metamask Vs Parity. Which browser extension is good to access DAPP using browser?

I am trying to develop a DAPP and requirement is end user should be able to use DAPP from browser. I have two options available Metamask and Parity. Are there any other better options available to ...
9
votes
2answers
3k views

Storing private data on the ethereum blockchain

I plan to make an app utilising Ethereum that will store private data about a user. Eventually, I want this data to be accessible by selected users. I have seen conflicting answers & discussions ...
0
votes
1answer
279 views

How to import data from MySQL database to swarm

In an application which is all ready developed and deployed data is stored in MySQL database. I want to import that data into swarm. Reasons to import data in swarm - 1) All the data shall not be ...
0
votes
1answer
110 views

Ethereum full stack application development

I am novice solidity developer and I am trying to develop a voting application on ethereum Requirements of application are - 1) There should be candidate and voter registration form 2) Voter ...
0
votes
1answer
42 views

Is an Ethereum paper wallet generator considered a dapp?

I made an Ethereum paper wallet generator. Is this considered a dapp as it can be downloaded and run without any central server to generate ethereum addresses? Or does a dapp have to be tied to a ...
1
vote
2answers
189 views

Searching for a similar Dapp - finding the difference between datasets using the Merkle Tree

I am struggling with the project for my thesis. I need to develop a Đapp, which can store a query ID as an integer and a large string array (which is actually the output of a query to a database, ...
2
votes
1answer
1k views

How to auto Reload dapp when Metamask is Unlocked or Locked by user

How can I auto-reload dapp base on Metamask account status? I wish to design a metamask based authentication (like the one used in Crypokitties), for which I am able to design code which identifies ...