Versions in this module Expand all Collapse all v1 v1.20.1 Feb 25, 2023 Changes in this version + type Modulus struct + func NewModulusFromBig(n *big.Int) *Modulus + func (m *Modulus) BitLen() int + func (m *Modulus) Nat() *Nat + func (m *Modulus) Size() int + type Nat struct + func NewNat() *Nat + func (out *Nat) Exp(x *Nat, e []byte, m *Modulus) *Nat + func (out *Nat) ExpandFor(m *Modulus) *Nat + func (out *Nat) Mod(x *Nat, m *Modulus) *Nat + func (x *Nat) Add(y *Nat, m *Modulus) *Nat + func (x *Nat) Bytes(m *Modulus) []byte + func (x *Nat) Equal(y *Nat) choice + func (x *Nat) IsZero() choice + func (x *Nat) Mul(y *Nat, m *Modulus) *Nat + func (x *Nat) SetBytes(b []byte, m *Modulus) (*Nat, error) + func (x *Nat) SetOverflowingBytes(b []byte, m *Modulus) (*Nat, error) + func (x *Nat) Sub(y *Nat, m *Modulus) *Nat