threshold_decrypt: Threshold decryption convenience: lead + main + fusion in one...

View source: R/multiparty.R

threshold_decryptR Documentation

Threshold decryption convenience: lead + main + fusion in one call

Description

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().

Usage

threshold_decrypt(cc, sks, ct)

Arguments

cc

A CryptoContext

sks

A list of PrivateKey objects, lead first

ct

The Ciphertext to decrypt

Details

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.

Value

A Plaintext


openfhe.R documentation built on Nov. 13, 2026, 5:07 p.m.