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

    Function randomizeKeyPackage

    • Randomize the given KeyPackage for usage in a re-randomized FROST signing, using the given RandomizedParams.

      It's recommended to use signWithRandomizerSeed() directly which already handles the key package randomization.

      IMPORTANT: You MUST NOT reuse the randomized key package for more than one signing.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • keyPackage: KeyPackage<C>

        The original key package to randomize

      • randomizedParams: RandomizedParams<C>

        The randomized parameters

      Returns KeyPackage<C>

      The randomized key package

      const randomizedKeyPackage = randomizeKeyPackage(
      ciphersuite,
      keyPackage,
      randomizedParams,
      );
      // Use randomizedKeyPackage for ONE signing operation only