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