/** * Constructor for generating commitments. * * @param digest the digest to base the HashCommitter on. * @param random the SecureRandom to use for generating witness values. */ public IndexCommitter(ExtendedDigest digest, SecureRandom random) { committer = new HashCommitter(digest, random); }
/** * Constructor for verifying commitments. * * @param digest the digest to base the HashCommitter on. */ public IndexCommitter(ExtendedDigest digest) { committer = new HashCommitter(digest, null); }