electora-vote / electora-app

Decentralized Voting Application - leveraging the power of zk-proofs, conditions based decryption, and decentralized storage
https://app.electora.eu/
8 stars 2 forks source link

Move CBD Encryption client side #23

Open theref opened 1 year ago

theref commented 1 year ago

Currently CBD encryption is being done server side, but it should in the browser. This is blocked until https://github.com/nucypher/nucypher-ts SDK supports the full DKG implementation.

meatballs commented 1 year ago

We've looked at two options for doing this and we're stalled on both:

  1. Using nucypher-ts via anvil.js As stated in the main description for this issue, we're blocked until the nucypher-ts build supports a browser implementation (as opposed to just node).

  2. Using nucypher (python library) via pyodide Pyodide can only handle pure python wheels from pypi unless you build a wheel yourself. That's probably possible for nucypher, but it's a fair amount of work.