Skip to main content

Module threshold_decryption

Module threshold_decryption 

Source
Expand description

Threshold decryption coordinator.

Coordinates ElGamal-style threshold decryption: collect decryption shares from T parties and combine them into the full plaintext.

Structs§

DecryptionSession
A threshold decryption session.
DecryptionShare
A decryption share from one party.

Enums§

DecryptionError
Errors during threshold decryption.

Functions§

combine_shares
Combine decryption shares using Lagrange interpolation. In a real implementation, this would use the group operation (e.g., EC point addition weighted by Lagrange coefficients). Here, we XOR-combine for the mock case.