Remove field package which is no longer used

This commit is contained in:
arnaucube
2020-03-05 17:39:51 +01:00
parent 16a8a18a6d
commit 4750e9c83c
5 changed files with 3 additions and 197 deletions

View File

@@ -20,7 +20,7 @@ var constC []*ff.Element
var constM [T][T]*ff.Element
func Zero() *ff.Element {
return ff.NewElement().SetZero()
return ff.NewElement()
}
func modQ(v *big.Int) {
@@ -71,7 +71,7 @@ func getMDS() [T][T]*ff.Element {
func checkAllDifferent(v []*ff.Element) bool {
for i := 0; i < len(v); i++ {
if v[i].Equal(ff.NewElement().SetZero()) {
if v[i].Equal(ff.NewElement()) {
return false
}
for j := i + 1; j < len(v); j++ {