private HashCashWorker(int seed, int difficulty, HashCashEncryptionAlgorithm encryptionAlgorithm, HashCashHashAlgorithm hashAlgorithm) { this.seed = seed; this.difficulty = difficulty; this.encryptionAlgorithm = encryptionAlgorithm; this.hashAlgorithm = hashAlgorithm; }
private HashCashWorker(int seed, int difficulty) { this.seed = seed; this.difficulty = difficulty; this.encryptionAlgorithm = new EncryptionAlgorithmXOR(); this.hashAlgorithm = new HashAlgorithmSHA256(); }
public static HashCashWorker Create(int seed, int difficulty, HashCashEncryptionAlgorithm encryptionAlgorithm, HashCashHashAlgorithm hashAlgorithm) { return(new HashCashWorker(seed, difficulty, encryptionAlgorithm, hashAlgorithm)); }