MCPcopy Create free account
hub / github.com/DOSNetwork/core / xMinusConst

Function xMinusConst

share/poly.go:216–222  ·  view source on GitHub ↗
(g kyber.Group, c kyber.Scalar)

Source from the content-addressed store, hash-verified

214}
215
216func xMinusConst(g kyber.Group, c kyber.Scalar) *PriPoly {
217 neg := g.Scalar().Neg(c)
218 return &PriPoly{
219 g: g,
220 coeffs: []kyber.Scalar{neg, g.Scalar().One()},
221 }
222}
223
224// RecoverPriPoly takes a list of shares and the parameters t and n to
225// reconstruct the secret polynomial completely, i.e., all private

Callers 1

RecoverPriPolyFunction · 0.85

Calls 3

NegMethod · 0.45
ScalarMethod · 0.45
OneMethod · 0.45

Tested by

no test coverage detected