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

    Function computeRefreshingShares

    • Compute refreshing shares for the Trusted Dealer refresh procedure.

      • pubKeyPackage: the current public key package. Note: if a pre-3.0.0 generated package is used, you will need to manually set the minSigners field with the threshold that was used in the original share generation. (You can't change the threshold when refreshing shares.)
      • identifiers: The identifiers of all participants that want to refresh their shares. Must be a subset of the identifiers in pubKeyPackage. If not all identifiers are passed, the refresh procedure will effectively remove the missing participants. The length must be equal to or greater than the threshold of the group.

      It returns a tuple of [refreshing shares, refreshed PublicKeyPackage]. The refreshing shares must be sent to the participants in the same order as identifiers.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • pubKeyPackage: PublicKeyPackage<C>

        The current public key package

      • identifiers: Identifier<C>[]

        Array of participant identifiers to refresh

      • rng: RandomSource

        Random number generator

      Returns [SecretShare<C>[], PublicKeyPackage<C>]

      A tuple of [SecretShare[], PublicKeyPackage]

      If parameters are invalid