solverrpc

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SolverProcess = "csppsolver"

SolverProcess is the process name that will be run in the background to handle the solving of polynomial roots. This may be changed before calling Roots if the process is named differently or if an absolute path is needed.

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.

func StartSolver added in v2.2.0

func StartSolver() error

StartSolver starts the solver's background process. This can be used to detect errors starting the solver process before the first call to Roots.

Types

This section is empty.

Jump to

Keyboard shortcuts

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