Class Commitment

java.lang.Object
org.bouncycastle.crypto.Commitment

public class Commitment extends Object
General holding class for a 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.