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

    Function generateSecretPolynomial

    • Generate a secret polynomial to use in secret sharing, for the given secret value. Also validates the given parameters.

      Returns the full vector of coefficients in little-endian order (including the given secret, which is the first element) and a VerifiableSecretSharingCommitment which contains commitments to those coefficients.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • secret: C["Scalar"]

        The secret scalar

      • maxSigners: number

        Maximum number of signers

      • minSigners: number

        Minimum number of signers

      • coefficients: C["Scalar"][]

        Pre-generated coefficients (excluding the secret)

      Returns [C["Scalar"][], VerifiableSecretSharingCommitment<C>]

      A tuple of [coefficients, VerifiableSecretSharingCommitment]

      If parameters are invalid