solver

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: ISC Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RootFactors added in v2.2.0

func RootFactors(a []*big.Int, F *big.Int) ([]*big.Int, []int, error)

RootFactors returns the roots and their number of solutions in the factorized polynomial. Repeated roots are an error in the mixing protocol but unlike the Roots function are not returned as an error here.

func Roots

func Roots(a []*big.Int, F *big.Int) ([]*big.Int, error)

Roots solves for len(a)-1 roots of the polynomial with coefficients a (mod F). Repeated roots are considered an error for the purposes of unique slot assignment, and an error with method RepeatedRoot() *big.Int is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL