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

    Class Item<C>

    A batch verification item.

    This struct exists to allow batch processing to be decoupled from the lifetime of the message. This is useful when using the batch verification API in an async context.

    Type Parameters

    Index

    Properties

    Methods

    Properties

    sig: Signature<C>

    Methods

    • Create a new batch Item from a VerifyingKey, Signature and a message to be verified.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • vk: VerifyingKey<C>

        The verifying key

      • sig: Signature<C>

        The signature

      • msg: Uint8Array

        The message to be verified

      Returns Item<C>

      A new batch Item

      FrostError if pre-verification or challenge computation fails

    • Perform non-batched verification of this Item.

      This is useful (in combination with cloning) for implementing fallback logic when batch verification fails. In contrast to VerifyingKey.verify(), which requires the message data, the Item type is unlinked from the message.

      Returns void

      FrostError if verification fails