The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [dapp-design]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
27 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
1answer
49 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(...
1
vote
1answer
14 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
30 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 ...
0
votes
1answer
39 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
34 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
55 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
66 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 ...
0
votes
1answer
45 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 ...
0
votes
1answer
100 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 ...
3
votes
2answers
171 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 ...
3
votes
2answers
475 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
38 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 ...
1
vote
1answer
774 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 ...
0
votes
2answers
249 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
0answers
48 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
262 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
53 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 ...
2
votes
0answers
145 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. ...
1
vote
2answers
628 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 ...
0
votes
1answer
138 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 ...
1
vote
1answer
79 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 ...
2
votes
1answer
40 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) ...
0
votes
1answer
468 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
2answers
476 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
212 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 ...
3
votes
0answers
121 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
258 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
294 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
1answer
333 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 ...
0
votes
2answers
401 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
261 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
109 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
39 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 ...
0
votes
1answer
22 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 ...
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
961 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 ...
0
votes
1answer
38 views

Should I use Ethereum blockhain for its immutability in my project?

First of all, I am completely new to blockchains so sorry if I'm asking any silly questions:) I would like to build a test web project: users can create accounts and manage various kinds of ...
1
vote
1answer
112 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 ...
2
votes
1answer
505 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
0answers
28 views

Build blockchain application that has some off-chain functionalities

I am learning about blockchain and I have a general question. Let's say that I want to build my custom blockchain based on Ethereum. My implementation has many nodes and few of them are chosen ...
1
vote
2answers
342 views

Is it possible to write an online browser game in ASP.net and integrate a smart contract to buy assets in that game for example?

I am fairly new to solidity, and i am exploring decentralized game development. This said, let us go more into the details. Imagine i want to develop a 2d game, where you can buy for example assets, ...
0
votes
1answer
98 views

Smart contract : wrong code or race condition?

We have developed a simple Smart Contract which offers this following public transaction method: struct Bid { uint256 userCode; uint256 amount; } Bid public ...
2
votes
1answer
547 views

How to track ownership of a real-world object?

Use Case I have a number of real-world objects that are stored in a central location. The deed to that object can be bought and sold without the actual object going anywhere. Deeds can be sold for ...
1
vote
0answers
15 views

Can a hash of all input addresses be used as a source of randomness?

So I want to create a casino contract. Can I use a hash of all addresses that participate in the casino as a source of randomness? I'd think yes, as there would be lots of users that have played the ...
1
vote
1answer
75 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 ...
3
votes
4answers
547 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 ...
2
votes
2answers
511 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 ...
0
votes
1answer
95 views

Using sub-contract to simplify interface

If I have a contract that has multiple payable functions, could I create additional contracts that use their default function to call the primary contract's specific function allowing the user to send ...
1
vote
1answer
54 views

ethereum user friendly app

I'm designing a new business with blockchain technology. And I would like to create a very user friendly app. I do not want to force people to have a wallet and ethers to interact with blockchain. So ...