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

    Function generateSecretShares

    • Creates secret shares for a given secret using the given coefficients.

      This function accepts a secret from which shares are generated, and a list of threshold-1 coefficients. While in FROST this secret and coefficients should always be generated randomly, we allow them to be specified for this internal function for testability.

      Implements secret_share_shard from the spec.

      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)

      • identifiers: Identifier<C>[]

        Array of participant identifiers

      Returns SecretShare<C>[]

      Array of SecretShares

      If parameters are invalid