internal/radix51: remove unused (and a bit broken) SetInt

It would return an invalid element if the input was greater than 2^54 - 1.
This commit is contained in:
Filippo Valsorda 2019-03-02 18:54:11 -05:00 committed by George Tankersley
parent 22cdf749a2
commit 010995eaa9
1 changed files with 0 additions and 10 deletions

View File

@ -48,16 +48,6 @@ func (v *FieldElement) One() *FieldElement {
return v
}
// SetInt sets the receiving FieldElement to the specified small integer.
func (v *FieldElement) SetInt(x uint64) *FieldElement {
v[0] = x
v[1] = 0
v[2] = 0
v[3] = 0
v[4] = 0
return v
}
func (v *FieldElement) Reduce(u *FieldElement) *FieldElement {
v.Set(u)