removed dependency to old code

This commit is contained in:
didier amyot committed 2014-11-29 23:29:34 -08:00
1 parent 959098cd25
commit b2d17e0eb6
5 files changed
+100 -26

No files matched your search

+1 -3
View File
@@ -6,8 +6,6 @@ import (
"errors"
"io"
"math/big"
"bitbucket.org/ustraca/crypto"
)
type ThresholdKey struct {
@@ -26,7 +24,7 @@ func (this *ThresholdKey) CombineSharesConstant() *big.Int {
// returns the factorial of the number of TotalNumberOfDecryptionServers
func (this *ThresholdKey) Delta() *big.Int {
return crypto.Factorial(this.TotalNumberOfDecryptionServers)
return Factorial(this.TotalNumberOfDecryptionServers)
}
func (this *ThresholdKey) MakeVerificationBeforeCombiningPartialDecryptions(shares []*PartialDecryption) error {