Do not cache N^2 value in PublicKey

Let's keep this structure clean. Computing N^2 is just a really small piece of encryption/decryption work and if we decide we need to tweak performance, we will need a different approach anyway.
This commit is contained in:
Piotr Dyraga committed 2018-05-24 19:02:01 +02:00
1 parent d892a58e4b
commit 69c60e90d5
2 files changed
+2 -7

No files matched your search

+1 -1
View File
@@ -118,6 +118,6 @@ func TestPartialDecryptionZKPBSONification(t *testing.T) {
}
func TestThresholdKeyBSON(t *testing.T) {
key := &ThresholdKey{PublicKey{b(9), b(8), nil}, 7, 6, b(3), []*big.Int{b(2), b(34)}}
key := &ThresholdKey{PublicKey{b(9), b(8)}, 7, 6, b(3), []*big.Int{b(2), b(34)}}
AssertBSONIsGood(key, new(ThresholdKey), t)
}