Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polls #36

Open
AtHeartEngineer opened this issue Sep 29, 2023 · 0 comments
Open

Polls #36

AtHeartEngineer opened this issue Sep 29, 2023 · 0 comments

Comments

@AtHeartEngineer
Copy link
Contributor

Ask poll question:

{type: poll,
Question:"question",
Options: [x, y, z],
Encrypt answers?
EncryptionKey: CryptoKey
HashedSecret: some value hashed // hashing is much cheaper than decryption, so to trust if/when the decryption key is valid, they have to prove they know some secret before we try to decrypt using their key. This is mainly to prevent an attacker providing bogus decryption keys.
}

Answer Poll Question:
{Type: poll_response,
Poll:internal nullifier,
Answer: encrypted answer}

Pollster presses "reveal answers to everyone"
Poll decryption key broadcast:
{
Type: poll_key,
Decryption key,
Secret}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant