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

    Function refreshDkgShares

    • Performs the third and final part of the refresh procedure for the participant holding the given SecretPackage, given the received round1::Packages and round2::Packages received from the other participants.

      round1Packages must be the same used in refreshDkgPart2.

      round2Packages maps the identifier of each other participant to the Package they sent to the current participant (the owner of secretPackage). These identifiers must come from whatever mapping the participant has between communication channels and participants, i.e. they must have assurance that the Package came from the participant with that identifier.

      oldPubKeyPackage and oldKeyPackage are the old values from the participant, which are being refreshed.

      It returns the refreshed KeyPackage that has the long-lived key share for the participant, and the refreshed PublicKeyPackage that has public information about all participants; both of which are required to compute FROST signatures. Note that while the verifying (group) key of the PublicKeyPackage will stay the same, the verifying shares will change.

      Parameters

      Returns Promise<[keys.KeyPackage, keys.PublicKeyPackage]>

      A Promise of a tuple of [KeyPackage, PublicKeyPackage]

      If validation fails