Package org.bouncycastle.crypto

## Interface Committer

- All Known Implementing Classes:
    `GeneralHashCommitter`, `HashCommitter`

      public interface Committer

  General interface fdr classes that produce and validate commitments.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Commitment` | `commit​(byte[] message)` | Generate a commitment for the passed in message.
    `boolean` | `isRevealed​(Commitment commitment, byte[] message)` | Return true if the passed in commitment represents a commitment to the passed in maessage.

- - ### Method Detail

    - #### commit

          Commitment commit​(byte[] message)

      Generate a commitment for the passed in message.
      Parameters:
        `message` - the message to be committed to,
      Returns:
        a Commitment

    - #### isRevealed

          boolean isRevealed​(Commitment commitment,
                             byte[] message)

      Return true if the passed in commitment represents a commitment to the passed in maessage.
      Parameters:
        `commitment` - a commitment previously generated.
        `message` - the message that was expected to have been committed to.
      Returns:
        true if commitment matches message, false otherwise.