Package org.bouncycastle.crypto
Class Commitment
java.lang.Object
org.bouncycastle.crypto.Commitment
General holding class for a commitment.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
The sealed commitment.byte[]
The secret required to reveal the commitment.
-
Constructor Details
-
Commitment
public Commitment(byte[] secret, byte[] commitment) Base constructor.- Parameters:
secret
- an encoding of the secret required to reveal the commitment.commitment
- an encoding of the sealed commitment.
-
-
Method Details
-
getSecret
public byte[] getSecret()The secret required to reveal the commitment.- Returns:
- an encoding of the secret associated with the commitment.
-
getCommitment
public byte[] getCommitment()The sealed commitment.- Returns:
- an encoding of the sealed commitment.
-