FROST Core TypeScript Library - v0.2.2-alpha.3
    Preparing search index...

    Function evaluatePolynomial

    • Evaluate the polynomial with the given coefficients (constant term first) at the point x=identifier using Horner's method.

      Implements polynomial_evaluate from the spec.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • identifier: Identifier<C>

        The x-coordinate

      • coefficients: C["Scalar"][]

        Polynomial coefficients (constant term first)

      Returns C["Scalar"]

      The polynomial value at the given point