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