Versions in this module Expand all Collapse all v1 v1.7.1 Mar 11, 2022 Changes in this version + const Size + var One = big.NewInt(1) + var Two = big.NewInt(2) + var Zero = big.NewInt(0) + func Add(x, y, m *big.Int) (*big.Int, error) + func AnyNil(values ...*big.Int) bool + func Commit(msg []byte) (Commitment, *Witness, error) + func ComputeHMAC(f func() hash.Hash, msg []byte, k []byte) ([]byte, error) + func ConstantTimeEq(a, b *big.Int) bool + func ConstantTimeEqByte(a, b *big.Int) byte + func Exp(x, y, m *big.Int) (*big.Int, error) + func ExpandMessageXmd(f func() hash.Hash, msg, DST []byte, lenInBytes int) ([]byte, error) + func FiatShamir(values ...*big.Int) ([]byte, error) + func GenerateSafePrime(bits uint) (*big.Int, error) + func Hash(msg []byte, curve elliptic.Curve) (*big.Int, error) + func I2OSP(b, n int) []byte + func In(x, m *big.Int) error + func Inv(x, m *big.Int) (*big.Int, error) + func Mul(x, y, m *big.Int) (*big.Int, error) + func Neg(x, m *big.Int) (*big.Int, error) + func OS2IP(os []byte) *big.Int + func Open(c Commitment, d Witness) (bool, error) + func Rand(m *big.Int) (*big.Int, error) + type Commitment []byte + type HashField struct + Characteristic *big.Int + ExtensionDegree *big.Int + Order *big.Int + type Params struct + F *HashField + Hash func() hash.Hash + L int + SecurityParameter int + type Witness struct + Msg []byte + func (w *Witness) UnmarshalJSON(data []byte) error + func (w Witness) MarshalJSON() ([]byte, error)