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

    Function computeLagrangeCoefficient

    • Internal

      Compute the Lagrange coefficient for a participant.

      Implements derive_interpolating_value from the spec.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • signerIds: Identifier<C>[]

        Array of participant identifiers in the signing set

      • xCoord: Identifier<C> | undefined

        The x-coordinate for the coefficient (or undefined for x=0)

      • signerId: Identifier<C>

        The participant's own identifier

      Returns C["Scalar"]

      The Lagrange coefficient

      If the identifier is duplicated or not found