コード例 #1
0
ファイル: HashCash.cs プロジェクト: jackullrich/EmulateMe
 private HashCashWorker(int seed, int difficulty, HashCashEncryptionAlgorithm encryptionAlgorithm, HashCashHashAlgorithm hashAlgorithm)
 {
     this.seed                = seed;
     this.difficulty          = difficulty;
     this.encryptionAlgorithm = encryptionAlgorithm;
     this.hashAlgorithm       = hashAlgorithm;
 }
コード例 #2
0
ファイル: HashCash.cs プロジェクト: jackullrich/EmulateMe
 private HashCashWorker(int seed, int difficulty)
 {
     this.seed                = seed;
     this.difficulty          = difficulty;
     this.encryptionAlgorithm = new EncryptionAlgorithmXOR();
     this.hashAlgorithm       = new HashAlgorithmSHA256();
 }
コード例 #3
0
ファイル: HashCash.cs プロジェクト: jackullrich/EmulateMe
 public static HashCashWorker Create(int seed, int difficulty, HashCashEncryptionAlgorithm encryptionAlgorithm, HashCashHashAlgorithm hashAlgorithm)
 {
     return(new HashCashWorker(seed, difficulty, encryptionAlgorithm, hashAlgorithm));
 }