You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
A string representing the ciphertext, i.e. (G, H)
A string representing the corresponding proof
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
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
The text was updated successfully, but these errors were encountered:
Consider ElGamal encryption to be as follows:
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. CausesFrom http://james.carlyle.space/2015/07/22/solidity-stack-too-deep/:
The text was updated successfully, but these errors were encountered: