Exemplo n.º 1
0
        public static void startKeccakC()
        {
            KeccakBinaryFPGADevice ktfpga = new KeccakBinaryFPGADevice(0, Settings.comPort);
            StandardStratum        kcs    = new StandardStratum(Settings.poolAddr, Settings.poolPort, Settings.poolUser, Settings.poolPass, Settings.poolName, Settings.algo);
            KeccakMiner            km     = new KeccakMiner(kcs, ktfpga, ktfpga);

            km.workLoop();
        }
Exemplo n.º 2
0
        public static void startSkein()
        {
            SkeinBinaryFPGADevice ktfpga = new SkeinBinaryFPGADevice(0, Settings.comPort);
            StandardStratum       sks    = new StandardStratum(Settings.poolAddr, Settings.poolPort, Settings.poolUser, Settings.poolPass, Settings.poolName, Settings.algo);
            SkeinMiner            skm    = new SkeinMiner(sks, ktfpga, ktfpga);

            skm.workLoop();
        }
Exemplo n.º 3
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();
        }
Exemplo n.º 4
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();
        }
Exemplo n.º 5
0
 public Job(StandardStratum aStratum, string aID, string aPrevHash, string aCoinbase1, string aCoinbase2, string[] aMerkles, string aVersion, string aNBits, string aNTime)
     : base(aStratum)
 {
     mStratum   = aStratum;
     mID        = aID;
     mPrevHash  = aPrevHash;
     mCoinbase1 = aCoinbase1;
     mCoinbase2 = aCoinbase2;
     mMerkles   = aMerkles;
     mVersion   = aVersion;
     mNBits     = aNBits;
     mNTime     = aNTime;
 }