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

Add examples for common usecases #9

Open
vkomenda opened this issue Aug 12, 2018 · 1 comment
Open

Add examples for common usecases #9

vkomenda opened this issue Aug 12, 2018 · 1 comment
Assignees

Comments

@vkomenda
Copy link
Contributor

An example is given in #8 for cryptographic signature verification. Further examples that can be added for the API functions may include:

  • message encryption with PublicKey::encrypt and decryption with SecretKey::decrypt,
  • for a threshold scheme, cyphertext share decryption with SecretKeyShare::decrypt_share and decryption of the entire encrypted message with PublicKeySet::decrypt,
  • generation of threshold signature shares, their combination into a signature with PublicKeySet::combine_signatures and verification of that signature with PublicKey::verify.

In addition, poanetwork/hbbft#183 (comment) provides a shared randomness usecase for an internal computation of threshold_crypto that only uses DecryptionShares and removes the xor_vec step that would require a Ciphertext. With a slight modification of the API, such an example can be provided as well.

@DrPeterVanNostrand
Copy link
Contributor

I started working on some threshold signing and encryption examples on Friday, I can take this issue.

@DrPeterVanNostrand DrPeterVanNostrand self-assigned this Aug 12, 2018
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

2 participants