Skip to main content

aggregate_partials

Function aggregate_partials 

Source
pub fn aggregate_partials(
    partials: &[PartialDecryption],
    threshold: u32,
    blob: &EncryptedBlob,
) -> Result<Vec<u8>, EciesError>
Expand description

Aggregate T partial decryptions to recover the plaintext.

Combined point = sum_i [ λ_i * partial_i ] = x * R = K (the ECDH shared secret). Derive AEAD key from X-coordinate of K, then AEAD-decrypt the blob.