| threshold_decrypt | R Documentation |
Performs a full n-of-n threshold decryption of ct given the
ordered list of party secret keys. The first key in sks is used
for multiparty_decrypt_lead(); the remaining keys for
multiparty_decrypt_main(); the resulting partials are then
fused with multiparty_decrypt_fusion().
threshold_decrypt(cc, sks, ct)
cc |
A CryptoContext |
sks |
A list of PrivateKey objects, lead first |
ct |
The Ciphertext to decrypt |
Use this when you have all secret keys in one place (testing, simulation, single-process demos). In a real distributed deployment each site holds only its own secret key and the partials travel over the network — that flow uses the lead / main / fusion functions directly.
A Plaintext
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.