Skip to main content
6 votes

How many transactions can the network handle?

Ethereum is fundamentally limited by single threaded performance of a CPU. Discussion over GAS costs/etc is misleading because the maximum GAS that an individual node can process is limited and there ...
bytemaster's user avatar
5 votes

Why is it called “quadratic” voting?

Classic collective decision making (aka a "majority voting system") is oftenTimes vulnerable to a phenomenon of the "tyranny of the majority", hence the 2nd name. Contrary to that, ...
Mila A's user avatar
  • 1,554
4 votes

Can Ethereum based tokens be used to represent a voting share in a private company?

Yes. This fulfills Howey test criteria for a security: carries dividends and is common enterprise. In most jurisdictions (in your cases, states?) and with most company types, it is a company ...
Mikko Ohtamaa's user avatar
4 votes
Accepted

Electronic Voting

A voting system can be implemented on Ethereum, and infact the official solidity document has an example on just this. http://solidity.readthedocs.io/en/develop/solidity-by-example.html To answer ...
Omkar Khair's user avatar
3 votes

Curve Voting Escrow Explanations

Just an update to Liron's answer, the whitepaper is now moved to https://github.com/curvefi/curve-dao-contracts/blob/master/doc/README.md
0xbe1's user avatar
  • 31
3 votes

where ethereum application store data

The dApp uses a smart contract to handle the voting. Therefore the data resides within the Ethereum blockchain and inside the smart contract. Physically the data is "replicated" across the entire ...
Lauri Peltonen's user avatar
3 votes
Accepted

Keep data secret until a specific date

You can use the implementation described here which actually uses the exact same idea you suggest here. https://blog.colony.io/token-weighted-voting-implementation-part-1-72f836b5423b
Elena Dimitrova's user avatar
2 votes

Can anyone explain solidity voting application?

My understand: this is a smart contract that can be used to hold a public vote on the blockchain. The person who deploys the smart contract is known as the "chairperson." They get to do two special ...
user19510's user avatar
  • 28.1k
2 votes
Accepted

Can a flash loan used to flash attack a smart contract?

Yes, it is possible. Moreover that technique was already used against MakerDao, read https://forum.makerdao.com/t/urgent-flash-loans-and-securing-the-maker-protocol/4901. It can be fixed by requiring ...
Ismael's user avatar
  • 30.3k
2 votes

DAO like functionality on Gnosis?

The Zodiac team from Gnosis is building DAO tools around the Safe. There are quite some extensions already and the community is open for new proposals. You can find more information on the Zodiac ...
Richard's user avatar
  • 5,144
2 votes
Accepted

Delegate function really needed while loop(Voting example)?

The while loop is for checking that no delegation loop exists like this: voter A === delegate ===> voter B === delegate ===> ... === delegate ===> voter A Whereas the line require(to != msg....
Henk's user avatar
  • 4,291
2 votes
Accepted

How many nodes can confirm the correctness of the hash value by miner?

Yes, all full nodes validate all blocks. Not only do they validate the hash is correct and meets the current difficulty requirement, but they also validate that all transactions in the block are valid....
user19510's user avatar
  • 28.1k
2 votes

Does each validator have equal voting right in a committee?

Yes, all attestations (votes) by validators are equal. Each validator needs a deposit of 32 ETH. There is little benefit to depositing more than 32 ETH for 1 validator. For example, if you have 64 ...
eth's user avatar
  • 86.5k
1 vote
Accepted

Voting smart contract help highest voted function?

No need to apologize :) we all start somewhere! The highestVoted function in this contract is used to find the member with the highest number of votes. Here's a breakdown of how it works: Initialize ...
Adam Boudj's user avatar
  • 2,441
1 vote
Accepted

What happens on curves VotingEscrow contract after 5 years?

Each time _checkpoint() is called (for example during deposits or withdrawals), the 255-week period is reset. For the vote weight to get broken, 255 weeks have to go by without anyone interacting with ...
Federico Nanni's user avatar
1 vote

Getting "Unknown Proposal ID" when casting vote in DAO

There could be several reasons why you are getting a "proposal ID not found" error when trying to vote on your proposal. Here are some potential causes and solutions to consider: The ...
Yakitori's user avatar
  • 787
1 vote
Accepted

Curve Voting Escrow Explanations

The Curve DAO whitepaper was very helpful for me for understanding the code, I really recommend starting with it: https://curve.fi/files/CurveDAO.pdf Specifically this part:
Liron Achdut's user avatar
1 vote

Smart Contract > 24kb

This contract won't be deployable on mainnet. You should look for a way to encode multiple argument into one. Use external Libraries for storage. And refactor in multiple smaller contract. Breaking ...
MadeInDreams's user avatar
  • 1,615
1 vote

Voting without paying fees

At one point you will have to spend the gas. Take a look at Gnosis Safe. They offer a way to sign the transaction and when all the signatures are made you can make the call. This is a big process that ...
MadeInDreams's user avatar
  • 1,615
1 vote

How to allow each voter to vote only once? [Very Simple Voting Contract]

There are many ways to do this, you might want to try adding something like the following: mapping (address => bool) private voted; function VoteA() public { require(voted[msg.sender] == false,...
Linum Labs's user avatar
  • 1,468
1 vote

Accessing database in solidity

You can't directly access any resources outside the blockchain. All the data your contract wants to use has to be input into the blockchain. So you just have to have some functionality in your ...
Lauri Peltonen's user avatar
1 vote

How come Blockchain Voting is decentralised and secure if it's controlled by ethereum network?

Ethereum is a decentralized blockchain. It's not controlled by anyone and it's run by client nodes. Anyone is free to run their own node which participates in upkeeping the blockchain and nobody can ...
Lauri Peltonen's user avatar
1 vote
Accepted

Token based voting approach

You are thinking it a little bit wrong way, I'd say. A token contract is a simple smart contract which basically only 1) contains a ledger which says how many tokens each address has and 2) has ...
Lauri Peltonen's user avatar
1 vote

How to build a blind voting contract in Solidity

Cool idea. Yes, a commit-reveal scheme is a primitive from cryptography that is easy to implement on Ethereum using, e.g. the built-in keccak hash function. The salt you mention is also known as a "...
Paul Pham's user avatar
  • 638
1 vote
Accepted

Using Multiple Accounts from a single physical machine

To elaborate on JAG's answer - if you run a local Ethereum blockchain like Ganache, you get 10 accounts with 100ETH each by default (or you can configure it for any other number of accounts/value). ...
Andrey's user avatar
  • 1,157
1 vote

How many nodes can confirm the correctness of the hash value by miner?

Just to add to @smarx's correct answer: The main thing to realize is that mining (finding the right nonce or answer which fulfills the PoW "puzzle") is very difficult and requires a lot of processing ...
Lauri Peltonen's user avatar
1 vote

An online voting system using blockchain technology

The voting contract should be configurable. Like you can deploy for many time for different times of voting. In user creation part, You should add the user's public address to the Blockchain in Users ...
Seetharaman GR's user avatar
1 vote

An online voting system using blockchain technology

This might be a good starting point: https://solidity.readthedocs.io/en/develop/solidity-by-example.html#voting
Bumblebee's user avatar
  • 1,761

Only top scored, non community-wiki answers of a minimum length are eligible