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

    Function part3

    • Performs the third and final part of the distributed key generation protocol 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 part2().

      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.

      It returns the KeyPackage that has the long-lived key share for the participant, and the PublicKeyPackage that has public information about all participants; both of which are required to compute FROST signatures.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • round2SecretPackage: round2.SecretPackage<C>

        The round 2 secret package

      • round1Packages: Map<string, round1.Package<C>>

        Map of identifier string to round 1 packages

      • round2Packages: Map<string, round2.Package<C>>

        Map of identifier string to round 2 packages

      Returns Promise<[KeyPackage<C>, PublicKeyPackage<C>]>

      A Promise of a tuple of [KeyPackage, PublicKeyPackage]

      If validation fails