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

    Function aggregateRandomized

    • Re-randomized FROST signature share aggregation with the given RandomizedParams, which can be computed from the previously generated randomizer using RandomizedParams.fromRandomizer() or RandomizedParams.newFromCommitments().

      This function aggregates signature shares from all participants into a final Schnorr signature. The resulting signature will verify against the randomized verifying key (randomizedParams.randomizedVerifyingKey).

      Note: This function requires the aggregate function from @frosts/core which aggregates signature shares into a final signature. Currently, this implementation provides the randomization wrapper.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • signingPackage: SigningPackage<C>

        The signing package containing the message and commitments

      • signatureShares: Map<Identifier<C>, SignatureShare<C>>

        Map of identifier to signature share from each participant

      • pubkeys: PublicKeyPackage<C>

        The original (non-randomized) public key package

      • randomizedParams: RandomizedParams<C>

        The randomized parameters used for signing

      Returns Signature<C>

      The aggregated Schnorr signature

      If aggregation fails or any signature share is invalid

      // Coordinator aggregates signature shares
      const signature = aggregate(
      ciphersuite,
      signingPackage,
      signatureShares,
      publicKeyPackage,
      randomizedParams,
      );

      // Verify the signature against the randomized verifying key
      randomizedParams.randomizedVerifyingKey.verify(message, signature);