Bitcoin Forum
July 02, 2024, 04:44:33 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 [23]
441  Local / Трейдеры / Re: Торговый автомат Bitcoin: купля-продажа BTC на metabank.ru on: May 08, 2012, 06:12:33 AM
PayPal с задержкой в месяц будете выплачивать или ещё с гокса типо деньги идут? Angry
442  Bitcoin / Pools / Re: [1233 GH/s] Slush's Pool (mining.bitcoin.cz); Pool back in action! on: December 30, 2011, 12:03:46 PM
Hi Slush!
I think you have little error calculating namecoin reward.
This block
9694   2011-12-30 11:23:21   4:18:40   4211228   0.00000036   0.00000411   159805     97 confirmations left
I have turned off miner after about 3 hour mining(this block),  while hashing this bitcoin block - 6 namecoin blocks was found...
Just cannot believe that for 3 hour namecoin reward was only 0.00000411.
443  Other / Beginners & Help / Re: Trying to understanding Bitcoin mining algorithm on: December 02, 2011, 02:56:35 PM
Thank you very much.
Got it with this code:

        public string ComputeHash(string input, HashAlgorithm algorithm)
        {
            Byte[] inputBytes = Encoding.UTF8.GetBytes(input);

            Byte[] hashedBytes = algorithm.ComputeHash(inputBytes);
            HashAlgorithm hashing;
            hashing = new SHA256Managed();
            textBox3.Text = BitConverter.ToString(hashing.ComputeHash(hashedBytes));
            return BitConverter.ToString(hashedBytes);
        }
444  Other / Beginners & Help / Re: Trying to understanding Bitcoin mining algorithm on: December 01, 2011, 09:36:08 PM
Its me again!

Have readed this page:
https://en.bitcoin.it/wiki/Protocol_specification
Got text:
"Example of double-SHA-256 encoding of string "hello":
hello
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 (first round of sha-256)
9595c9df90075148eb06860365df33584b75bff782a510c6cd4883a419833d50 (second round of sha-256)"

Got after first round :
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
second
a6ac4251402d8b9cbac7af2abeb7f2cd3fc96c3a1d3df508e26870dc91a079a4
or
d7914fe546b684688bb95f4f888a92dfc680603a75f23eb823658031fff766d9

Code:
public string ComputeHash(string input, HashAlgorithm algorithm)
        {
            Byte[] inputBytes = Encoding.UTF8.GetBytes(input);

            Byte[] hashedBytes = algorithm.ComputeHash(inputBytes);

            return BitConverter.ToString(hashedBytes);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textBox2.Text = ComputeHash(textBox1.Text, new SHA256Cng());
            textBox2.Text = textBox2.Text.ToLower();
            textBox2.Text = textBox2.Text.Replace("-", "");
     
            textBox3.Text = ComputeHash(textBox2.Text, new SHA256Cng());
            textBox3.Text = textBox3.Text.ToLower();
            textBox3.Text = textBox3.Text.Replace("-", "");
        }

Whats wrong?
445  Other / Beginners & Help / Re: Trying to understanding Bitcoin mining algorithm on: November 01, 2011, 08:09:24 PM
Ok. 2nd problem seems to be solved.

Quote
{
  "midstate": "eb5a28fb7c4ee0b602ecf3ddd31bd6591b9b4d2f53767cd7433fa557cf1c2127",
  "data": "00000001acb8f97aae2fae30ec96b2bf67c7e064d134e80dcd46f52f00000dbe000000000473187 52323d170d19c090d9ea8684da21be77bad127dffc3fcfda5cb29469e4eb050191a0df0ca000000 0000000080000000000000000000000000000000000000000000000000000000000000000000000 0000000000080020000",
  "hash1": "0000000000000000000000000000000000000000000000000000000000000000000000800000000 0000000000000000000000000000000000000000000010000",
  "target": "0000000000000000000000000000000000000000000000caf00d000000000000"
}

We take our encrypted "answer" and compare it to reversed "target", in that case:
0000000000000000000000000000000000000000000000caf00d000000000000
In answer any behind first 12 zeroes can in this case be anything?

And now to first question.
There is nonce, and its increasing all the time.
In first try its 00000001, second 00000002 etc.
In examples while they encrypt it with sha256 they convert nonce, but i cannot find in which format they convert it. In example before converting nonce was 00000000 and just before hashing its in format like 2e6b0a1d. I just dont understand which format it must be converted.

Tried to understand WIKI but there are 2 variable: i am stupid  or its not explained very good in wiki.

Thanks for answers.
446  Other / Beginners & Help / Re: Whitelist Requests (Want out of here?) on: November 01, 2011, 07:56:51 PM
Whitelist, please? =)
447  Other / Beginners & Help / Re: Slush Pool NMC mining on: October 31, 2011, 10:17:01 AM
Yes, i have set the address...
I will wait, will post reply if will not getting any in this day  Wink
448  Other / Beginners & Help / Slush Pool NMC mining on: October 31, 2011, 09:48:35 AM
Today noticed that i dont get any NMC for mining... is there any server side problem?
449  Other / Beginners & Help / Re: Trying to understanding Bitcoin mining algorithm on: October 31, 2011, 09:47:45 AM
No one knows?
450  Other / Beginners & Help / Trying to understanding Bitcoin mining algorithm on: October 24, 2011, 08:59:07 AM
Hi!
I actually wanted to write to Russian Coders section, but becouse of restriction have to ask here:

I try to simulate mining. I am not very good coder, but anyway.
@ the moment as i have read:

We take: Version, Prev. Block hash, Merkle,Date, Difficulty,Nonce.
Revers every of them, put in same "string", double hash SHA256, reverse again and check is it smaller than difficulty?

Problems i have:
1)To what type i must convert nonce 00000000 to get 2e6b0a1d???

2) In some examples i have seen target: ffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000 How i know is my solution smaller than target?

I am coding on C# by the way.

Thanks
451  Other / Beginners & Help / Re: Ubuntu install. on: October 24, 2011, 08:45:25 AM
Very usual problem on ubuntu if shutting down client while its downloading blocks.
Is there solution to not download blocks from start? Takes 24 h on my old notebook  Tongue
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 [23]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!