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

    Function reconstruct

    • Recompute the secret from at least minSigners secret shares (inside KeyPackages) using Lagrange interpolation.

      This can be used if for some reason the original key must be restored; e.g. if threshold signing is not required anymore.

      This is NOT required to sign with FROST; the point of FROST is being able to generate signatures only using the shares, without having to reconstruct the original key.

      The caller is responsible for providing at least minSigners packages; if less than that is provided, a different key will be returned.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • keyPackages: KeyPackage<C>[]

        Array of key packages

      Returns C["Scalar"]

      The reconstructed secret scalar

      If reconstruction fails