provotum / eth-contracts Goto Github PK
View Code? Open in Web Editor NEWEthereum Smart Contracts for Provotum
License: Apache License 2.0
Ethereum Smart Contracts for Provotum
License: Apache License 2.0
Consider ElGamal encryption to be as follows:
E(m) = (G, H) = (g^r, h^r * g^m), with h = g^x and m = message
Then, the contract should include dedicated arguments in the method vote
for:
NOTE the ballot contract should not assume anything about how the values are encoded. Currently they are in base 36, as this is the largest radix Java supports. However, this may change, in case the length of the native datatypes of Ethereum does not suffice to store these values.
-- EDIT --
NOTE that using dedicated arguments to the vote
method is not allowed due to the restricted amount of local variables one can declare in an Ethereum smart contract function. Causes
Stack too deep, try removing local variables
From http://james.carlyle.space/2015/07/22/solidity-stack-too-deep/:
Depending on what you do, you can have around 16 local variables (including parameters and return parameters).
So every input parameter to the function takes one variable, and each return value takes one variable, and each local declaration takes another variable, and references to storage take two
Rethink Proposal struct
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.