Add goff ff.Element to babyjubjub

WIP, at this moment still does not bring much optimization
This commit is contained in:
arnaucube
2020-03-09 11:51:41 +01:00
parent ee467c6215
commit 8a260d66d3
5 changed files with 144 additions and 102 deletions

View File

@@ -1,5 +1,13 @@
package ff
import "math/big"
func NewElement() *Element {
return &Element{}
}
func (e *Element) BigInt() *big.Int {
b := big.NewInt(0)
e.ToBigIntRegular(b)
return b
}