| Modifier and Type | Method and Description |
|---|---|
| public Commitment | Returns: a Commitmentthe message to be committed to, message)Generate a commitment for the passed in message. |
| public boolean | Returns: true if commitment matches message, false otherwise.a commitment previously generated. commitment, byte[] the message that was expected to have been committed to. message)Return true if the passed in commitment represents a commitment to the passed in maessage. |
| commit | back to summary |
|---|---|
| public Commitment commit(byte[] message) Generate a commitment for the passed in message.
| |
| isRevealed | back to summary |
|---|---|
| public boolean isRevealed(Commitment commitment, byte[] message) Return true if the passed in commitment represents a commitment to the passed in maessage.
| |