Shortened name of the partial decryption verification function
This commit is contained in:
2 files changed
+7
-7
No files matched your search
@@ -129,16 +129,16 @@ func TestDecryptAndProduceZNP(t *testing.T) {
|
||||
func TestMakeVerificationBeforeCombiningPartialDecryptions(t *testing.T) {
|
||||
tk := new(ThresholdPublicKey)
|
||||
tk.Threshold = 2
|
||||
if tk.makeVerificationBeforeCombiningPartialDecryptions([]*PartialDecryption{}) == nil {
|
||||
if tk.verifyPartialDecryptions([]*PartialDecryption{}) == nil {
|
||||
t.Fail()
|
||||
}
|
||||
prms := []*PartialDecryption{new(PartialDecryption), new(PartialDecryption)}
|
||||
prms[1].Id = 1
|
||||
if tk.makeVerificationBeforeCombiningPartialDecryptions(prms) != nil {
|
||||
if tk.verifyPartialDecryptions(prms) != nil {
|
||||
t.Fail()
|
||||
}
|
||||
prms[1].Id = 0
|
||||
if tk.makeVerificationBeforeCombiningPartialDecryptions(prms) == nil {
|
||||
if tk.verifyPartialDecryptions(prms) == nil {
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user