Versions in this module Expand all Collapse all v0 v0.0.2 Aug 19, 2020 v0.0.1 Aug 19, 2020 Changes in this version + func Crt(a *big.Int, pa *big.Int, b *big.Int, pb *big.Int) *big.Int + func FastRandomBigInt(limit *big.Int) *big.Int + func GetHashNumber(a *big.Int, b *big.Int, index int, bitlen uint) *big.Int + func HashCommit(values []*big.Int, issig bool) *big.Int + func IntHashSha256(input []byte) *big.Int + func LegendreSymbol(a, p *big.Int) int + func ModInverse(a, n *big.Int) (ia *big.Int, ok bool) + func ModPow(x, y, m *big.Int) *big.Int + func ModSqrt(a *big.Int, factors []*big.Int) (*big.Int, bool) + func PrimeSqrt(a *big.Int, pa *big.Int) (*big.Int, bool) + func RandomBigInt(numBits uint) (*big.Int, error) + func RandomPrimeInRange(rand io.Reader, start, length uint) (p *big.Int, err error) + func RandomQR(n *big.Int) *big.Int + func RepresentToBases(bases, exps []*big.Int, modulus *big.Int, maxMessageLength uint) *big.Int + type CPRNG struct + func NewCPRNG(seed *[32]byte) (*CPRNG, error) + func (c *CPRNG) Read(buf []byte) (n int, err error) + type FastMod struct + func (m *FastMod) Mod(ret, x *big.Int) *big.Int + func (m *FastMod) Set(p *big.Int)