Java 类org.bouncycastle.crypto.commitments.HashCommitter 实例源码

项目:ximix    文件:IndexCommitter.java   
/**
 * 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);
}
项目:ximix    文件:IndexCommitter.java   
/**
 * Constructor for verifying commitments.
 *
 * @param digest the digest to base the HashCommitter on.
 */
public IndexCommitter(ExtendedDigest digest)
{
    committer = new HashCommitter(digest, null);
}