Documentation
¶
Index ¶
- Constants
- Variables
- type Field
- func (engine *Field) Add(a, b constraint.Element) constraint.Element
- func (engine *Field) Field() *big.Int
- func (engine *Field) FieldBitLen() int
- func (engine *Field) FromInterface(i interface{}) constraint.Element
- func (engine *Field) Inverse(a constraint.Element) (constraint.Element, bool)
- func (engine *Field) IsOne(a constraint.Element) bool
- func (engine *Field) Mul(a, b constraint.Element) constraint.Element
- func (engine *Field) Neg(a constraint.Element) constraint.Element
- func (engine *Field) One() constraint.Element
- func (engine *Field) SerializedLen() int
- func (engine *Field) String(a constraint.Element) string
- func (engine *Field) Sub(a, b constraint.Element) constraint.Element
- func (engine *Field) ToBigInt(c constraint.Element) *big.Int
- func (engine *Field) Uint64(a constraint.Element) (uint64, bool)
Constants ¶
View Source
const P = 0x7fffffff
Variables ¶
View Source
var Pbig = big.NewInt(P)
View Source
var ScalarField = Pbig
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct{}
func (*Field) Add ¶
func (engine *Field) Add(a, b constraint.Element) constraint.Element
func (*Field) FieldBitLen ¶
func (*Field) FromInterface ¶
func (engine *Field) FromInterface(i interface{}) constraint.Element
func (*Field) Inverse ¶
func (engine *Field) Inverse(a constraint.Element) (constraint.Element, bool)
func (*Field) Mul ¶
func (engine *Field) Mul(a, b constraint.Element) constraint.Element
func (*Field) Neg ¶
func (engine *Field) Neg(a constraint.Element) constraint.Element
func (*Field) One ¶
func (engine *Field) One() constraint.Element
func (*Field) SerializedLen ¶
func (*Field) Sub ¶
func (engine *Field) Sub(a, b constraint.Element) constraint.Element
Click to show internal directories.
Click to hide internal directories.