ncw / gmp

Go language interface to GMP - GNU Multiprecision Library (golang)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

what is the prober method to convert big.int from gmp to big.int from "math/big"

msh2050 opened this issue · comments

I get Cannot use 'nouse.FastDoubling(n)' (type *"github.com/ncw/gmp".Int) as the type *"math/big".Int

this will happen if you want to import from another package...

after some tests
I think the fastest method is to use :

        bigmath := new(big.Int)
	bigmath = bigmath.SetBytes(gmp.Bytes())