clearmatics / zeth

Integration of Zerocash on Ethereum: https://arxiv.org/abs/1904.00905
https://clearmatics.github.io/zeth/
GNU Lesser General Public License v3.0
57 stars 26 forks source link

Create a CLI to facilitate user experience #8

Closed AntoineRondelet closed 4 years ago

dannywillems commented 5 years ago

Can you give a bit more info pls? What do you want exactly?

AntoineRondelet commented 5 years ago

Sure, thanks for the message @dannywillems!

As of now, the "Proof Consumer" (PC for short) is just implemented as a bunch of Python scripts (see the pyClient folder). These scripts execute a "mock" scenario with Alice, Bob and Charlie doing Ether or ERC20 transfers in zero knowledge (the scripts call the "Proof Generator" via RPC calls and use the received proofs to call the "Mix" function of the Mixer smart contract, to effectively do private transfers). In this issue, we propose to enhance usability of zeth by having a better way to interact with the Proof Generator and the Mixer smart contract to do private asset transfer. In fact, rather than writing your script describing the scenario you'd like to test; it'd be great to have a CLI that enables the user to enter the payment informations, then call the PG on the given inputs to get a proof and then call the Mixer to execute the transfers.

AntoineRondelet commented 4 years ago

As mentioned on the comment above, the purpose of this issue is to have a basic CLI to enable users to do payments via the Zeth contract. Thus, the basic functionalities desired are:

I wrote some more infos on how the flow would work, here some time ago: https://github.com/clearmatics/zeth/tree/master/coinstore

AntoineRondelet commented 4 years ago

Closing this issue since the corresponding PR has been merged