All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fitbur.bouncycastle.crypto.Committer Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package com.fitbur.bouncycastle.crypto;

/**
 * General interface fdr classes that produce and validate com.fitburmitments.
 */
public interface Committer
{
    /**
     * Generate a com.fitburmitment for the passed in message.
     *
     * @param message the message to be com.fitburmitted to,
     * @return a Commitment
     */
    Commitment com.fitburmit(byte[] message);

    /**
     * Return true if the passed in com.fitburmitment represents a com.fitburmitment to the passed in maessage.
     *
     * @param com.fitburmitment a com.fitburmitment previously generated.
     * @param message the message that was expected to have been com.fitburmitted to.
     * @return true if com.fitburmitment matches message, false otherwise.
     */
    boolean isRevealed(Commitment com.fitburmitment, byte[] message);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy