mirror of
https://github.com/arnaucube/go-iden3-crypto.git
synced 2026-02-07 19:46:41 +01:00
Add goff ff.Element to babyjubjub
WIP, at this moment still does not bring much optimization
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user