poanetwork/hbbft

Rename `ThresholdDecryption` to `ThresholdDecrypt`

alyjak opened this issue · 0 comments

Per #286, ThresholdSign and ThresholdDecryption share a similar API. One awkward thing that wasn't resolved in that issue is that the term ThresholdSign is a verb-like name, while ThresholdDecryption is a noun-like name. Both classes operate as verbs, as they are used to acquire shared random values and decrypted messages respectively. They are not used to store these values, which would be a noun-like use. Therefore, change all instances of the term ThresholdDecryption to ThresholdDecrypt and change threshold_decryption.rs to threshold_decrypt.rs.

Keep the "adjective" uses of decryption the same, for example a DecryptionShare is still a DecryptionShare.