예제 #1
0
        public KeccakMiner(StandardStratum _kcs, Device _device, StandardWorkerI _keccakWorker)
        {
            kcs          = _kcs;
            keccakWorker = _keccakWorker;
            device       = _device;
            keccakWorker.SetNonceCallback(this);

            keccak_hash = HashLib.HashFactory.Crypto.SHA3.CreateKeccak256();
            //TTT();
        }
예제 #2
0
        public SkeinMiner(StandardStratum sks, Device device, StandardWorkerI skeinWorker)
        {
            this.sks         = sks;
            this.skeinWorker = skeinWorker;
            this.device      = device;
            skeinWorker.SetNonceCallback(this);

            skein_hash  = HashLib.HashFactory.Crypto.SHA3.CreateSkein512();
            sha256_hash = HashLib.HashFactory.Crypto.CreateSHA256();
        }