Let's take a simple vote as an example.
The following are the minimum settings needed to deploy the contract and use zkC.R.E.A.M.
cream: merkleTrees: 4 denomination: 1000000000000000000 recipients: [ "0x65A5B0f4eD2170Abe0158865E04C4FF24827c529", "0x9cc9C78eDA7c7940f968eF9D8A90653C47CD2a5e", "0xb97796F8497bb84C63e650E9527Be587F18c09f8" ] zeroValue: "2558267815324835836571784235309882327407732303445109280607932348234378166811"
|Specify the size of the merkle tree for managing the history of deposits. The size of the tree is |
|The total amount of tokens needed for the |
|An array of ethereum addresses to be candidates for the ballot.|
|Zero value which defined at |
The implementation of deposits is described in detail in the #Deposit section of the Contract API.
The implementation of withdrawal is described in detail in the #Withdraw section of the Contract API.