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

    Function generateWithDealer

    • Allows all participants' keys to be generated using a central, trusted dealer.

      Under the hood, this performs verifiable secret sharing, which itself uses Shamir secret sharing, from which each share becomes a participant's secret key. The output from this function is a set of shares along with one single commitment that participants use to verify the integrity of the share.

      Implements trusted_dealer_keygen from the spec.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • maxSigners: number

        Maximum number of signers

      • minSigners: number

        Minimum number of signers (threshold)

      • identifiers: IdentifierList<C>

        Identifier list configuration

      • rng: RandomSource

        Random number generator

      Returns Promise<[Map<string, SecretShare<C>>, PublicKeyPackage<C>]>

      A tuple of [Map of SecretShares by identifier string, PublicKeyPackage]

      If parameters are invalid