Removed unused ThresholdKey.divide function

This commit is contained in:
Piotr Dyraga committed 2018-05-30 14:48:50 +02:00
1 parent 1dc8db4cb2
commit 915950cb35
2 files changed
+4 -34

No files matched your search

-17
View File
@@ -230,23 +230,6 @@ func TestDecryption(t *testing.T) {
} else if n(msg) != 100 {
t.Error("decrypted message was not 100 but ", msg)
}
}
func TestDivide(t *testing.T) {
tk := new(ThresholdKey)
if r := tk.divide(b(77), b(4)); n(r) != 19 {
t.Error("77 / 4 != 19 ( ", r, " )")
}
if r := tk.divide(b(-77), b(-4)); n(r) != 19 {
t.Error("-77 / -4 != 19 ( ", r, " )")
}
if r := tk.divide(b(-77), b(4)); n(r) != -19 {
t.Error("-77 / 4 != -19 ( ", r, " )")
}
if r := tk.divide(b(77), b(-4)); n(r) != -19 {
t.Error("77 / -4 != -19 ( ", r, " )")
}
}
func TestValidate(t *testing.T) {