Documentation

CatCryptCore.Examples.Commitments.CommitmentScheme

Abstract Commitment Schemes #

This file defines the abstract structure for commitment schemes and their security games (correctness, hiding, binding).

Main definitions #

References #

Commitment Scheme Structure #

An abstract commitment scheme.

A commitment scheme consists of:

  • A setup algorithm producing public parameters
  • A commit algorithm producing a commitment and opening
  • A verify algorithm checking validity
Instances For

    Correctness #

    Correctness game: setup, commit, then verify. Returns true if verify accepts the honest commitment.

    Equations
    Instances For

      A commitment scheme is correct if for all messages, the correctness game always returns true.

      Equations
      Instances For

        Hiding #

        Type of hiding adversary: chooses two messages, then distinguishes

        Instances For

          Hiding game with bit b: commit to m_b

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Binding #

            @[reducible, inline]

            Type of binding adversary: given key, output two valid openings for different messages

            Equations
            Instances For

              Binding game: adversary wins if it finds two valid openings for the same commitment but different messages

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For