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

    Function signWithRandomizerSeed

    • Re-randomized FROST signing using the given randomizerSeed, which should be sent from the Coordinator using a confidential channel.

      This is the recommended signing function for re-randomized FROST. The Coordinator should call RandomizedParams.newFromCommitments() and send the generated randomizer seed to all participants along with the regular SigningPackage.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use (must support rerandomization)

      • signingPackage: SigningPackage<C>

        The signing package from the coordinator

      • signerNonces: SigningNonces<C>

        The signer's nonces generated in round 1

      • keyPackage: KeyPackage<C>

        The signer's key package containing their secret share

      • randomizerSeed: Uint8Array

        The randomizer seed bytes from the coordinator

      Returns SignatureShare<C>

      The signature share

      If signing fails

      // Coordinator side:
      const [randomizedParams, randomizerSeed] = RandomizedParams.newFromCommitments(
      ciphersuite,
      groupVerifyingKey,
      signingCommitments,
      rng,
      );
      // Send randomizerSeed to participants via confidential channel

      // Participant side:
      const signatureShare = signWithRandomizerSeed(
      ciphersuite,
      signingPackage,
      signerNonces,
      keyPackage,
      randomizerSeed,
      );