Class Commitment


  • public class Commitment
    extends Object
    General holding class for a commitment.
    • Constructor Detail

      • 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 Detail

      • 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.