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