com.fitbur.bouncycastle.crypto.Commitment Maven / Gradle / Ivy
package com.fitbur.bouncycastle.crypto;
/**
* General holding class for a com.fitburmitment.
*/
public class Commitment
{
private final byte[] secret;
private final byte[] com.fitburmitment;
/**
* Base constructor.
*
* @param secret an encoding of the secret required to reveal the com.fitburmitment.
* @param com.fitburmitment an encoding of the sealed com.fitburmitment.
*/
public Commitment(byte[] secret, byte[] com.fitburmitment)
{
this.secret = secret;
this.com.fitburmitment = com.fitburmitment;
}
/**
* The secret required to reveal the com.fitburmitment.
*
* @return an encoding of the secret associated with the com.fitburmitment.
*/
public byte[] getSecret()
{
return secret;
}
/**
* The sealed com.fitburmitment.
*
* @return an encoding of the sealed com.fitburmitment.
*/
public byte[] getCommitment()
{
return com.fitburmitment;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy