Bitcoin Forum
June 20, 2024, 04:13:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 [131] 132 133 134 135 136 137 »
2601  Bitcoin / Hardware / Re: Official Open Source FPGA Bitcoin Miner (Smaller Devices Now Supported!) on: June 06, 2011, 09:09:56 AM
D) there is 2 rounds of sha256, and one sha256 round is 64 rounds. 2*64=128rounds.
the way to calculate the hash of a block is: sha256(sha256(blockdata))
To be exact, a constant is prepended to the inner sha256 hash to pad it to the 512 data bytes needed for the outer hash.
yes. the first a 1bit then alot of 0bits and then the size(64bit) until we reaches 512, i know that. but it does not matter much, how its done, just that it is done... it is the padding a talked about.
btw. its 512 bytes its 512 bits. a byte is 8 bits.
2602  Bitcoin / Hardware / Re: Official Open Source FPGA Bitcoin Miner (Smaller Devices Now Supported!) on: June 06, 2011, 08:44:40 AM
Well, this is a bit earlier than I had wanted, but I will tweak and improve this as we go along.
...
Please feel free to give me feedback, suggestions, critiques, and of course to submit Pull requests.
...
June 2nd, 2011 - Flexible Unrolling Added
Thanks to the patch submitted by Udif, the code now supports a configurable amount of loop unrolling. The original design was fully unrolled, with 128 total round modules. By adjusting the CONFIG_LOOP_LOG2 Verilog define, you can choose to unroll to 64 round modules, 32, 16, 8, or 4. This makes the design smaller, at the equivalent cost of speed, which should allow it to run on many more FPGAs.

FPGAminer - I've been following this thread for ~2 weeks now and looking at your TCL code for your miner (mine.tcl), and I am still trying to figure out *exactly* what goes into the FPGAs for hashing, and what comes out to be submitted.

It looks like the following takes place:

1) get_work() and send the following to the FPGA:
1 a) MIDSTATE - all 256 bits
1 b) DATA - *ONLY* 256bits [256-511] (DATA string characters 128-191)
1 c) HASH1, TARGET, and the remaining 75% of DATA are discarded. (?!?!)

2) wait up to 20 seconds for a result - [wait_for_golden_ticket 20]

3) upon finding a "golden ticket", submit_work to the bitcoin client containing:
3 a) original DATA string[0-151], plus
3 b) "golden ticket" nonce string replacing DATA characters[152-159], plus
3 c) original DATA string[160-255]
... in essence, the original data string with the 20th 32-bit all-zero data block replaced with the golden nonce.

Side note: it appears that the 18th 32-bit block is Unix seconds - since 01/01/1970 00:00:00.  Any other clues you can give about other fields?  Smiley  Maybe a link to the getwork() definition of returned data?

My questions are the following:
A) When does the FPGA "learn" of the target value to beat ... or does it ever? (Hardcoded?)
B) SHA256 requires 512bit chunks of data to hash over.  Is MIDSTATE really *right-in-the-middle* of a 64-round hash as opposed to just between 512bit chunks?
C) Exactly what gets hashed?  It looks like  the SHA256 engine is "primed" with MIDSTATE, and only gets 256bits of DATA to iterate with (ignoring the other 768bits of DATA).
D) If you only submit MIDSTATE and 256bits of DATA, how do we arrive at 128 round engines in the FPGA?

Any insight would be appreciated.  Especially if an explanation points to a more in-depth description of the algorithm.  (I've read every post here for ~2 weeks.)  I've also refreshed my memory at http://en.wikipedia.org/wiki/SHA-2

BTW - Thanks for all of your work!  GREAT JOB!

A) it does not learn anything it just matches h[7] == 0, like saying the first 32bit is zero.
b)the midstate is between 2 chunks. a block is 80 bytes long. and 512 bit is 64byte. acc. to https://en.bitcoin.it/wiki/Protocol_specification#Block_Headers DATA[512:640] is 4 bytes of the rest of the merkelroot, timestamp, "bits", nonce. that means that the data is only 4*4=16bytes long, it should be 32bytes, it is then padded till it is 32 bytes long
C)the midstate is the state of the sha256 engine after the first block of 512bits, after then you hash up to 80 bytes(640bits).
D) there is 2 rounds of sha256, and one sha256 round is 64 rounds. 2*64=128rounds.
the way to calculate the hash of a block is: sha256(sha256(blockdata))

hope it explained it. feel free to drop some coins/cents at: 1EJXbMi5CjHeNmUQNpZgg72HWzEMX8tVja
2603  Bitcoin / Bitcoin Discussion / Re: A small weakness of bitcoins? on: June 05, 2011, 09:12:41 PM
Most Operating Systems have inbuilt software to erase free space. The only thing people will need to do is learn to use it
i would like to see that on windose...
i only know of dd on linux, or encrypting your harddrive and when you don't need it anymore you burn the key.
2604  Bitcoin / Bitcoin Discussion / Re: So, I have some bitcoins... ...now what? on: June 05, 2011, 07:21:25 PM
you could buy real world computer stuff: https://www.btcdeals.com/
2605  Other / Politics & Society / Re: I will admit something... on: June 05, 2011, 11:18:11 AM
If forcing people to give a cut of their labor to a central authority and using it to provide 'non-profit' universal services to all worked sustainably and provided happiness and prosperity for all, I would happily condone it.

And what if it only provided happiness and prosperity for 80% of the population?  Piss on the 20% of malcontents?
no try to resolve it.
2606  Bitcoin / Bitcoin Discussion / Re: Introduce Yourself on: June 05, 2011, 12:26:08 AM
Use the "edit" button on the upper right of any post of yours then needs correction.
not needing corrections... just need to learn English.  Cheesy
im making mistakes -> im learning.
2607  Bitcoin / Development & Technical Discussion / Re: how can i pull transaction data directly from blocks? on: June 04, 2011, 11:06:01 PM
i'm afraid if i pay you 1 btc now it will be worth $160,000 3 months from now! 

get fucked by hyper deflation.
is no one is spending, the economy is collapsing. and your btc will me worth 0.001 USD by the end of the month.
im spending, i just yesterday buyed a wierless bluetooth keyboard for 2 btc.
2608  Other / Politics & Society / Re: I will admit something... on: June 04, 2011, 10:52:45 PM
What is this communism theme going on around the forum?!

Would there be an incentive for you to work all your life to improve the life of both you and your children, if the state would confiscate your assets when you die and you couldn't leave anything behind?
no one is talking about confiscate anything here... we are just talking freedom vs. happiness.
keep to the topic, and stop the troll communism-is-evil crap.
2609  Bitcoin / Development & Technical Discussion / Re: how can i pull transaction data directly from blocks? on: June 04, 2011, 10:31:20 PM
you can get some python code, selling for 1btc, for pulling it out of my project, and opensource it Smiley
2610  Economy / Economics / Re: Deflation and Bitcoin, the last word on this forum on: June 04, 2011, 09:59:16 PM
the only thing that is bad about bitcoin, is that right now its more deflationary then gold... you may lose gold is very small amounts(like a ring or something).
but with bitcoin: 1 btc lost is roughly the same as ~0.25 kilo gold. in a few years. and 1 kilo gold just don't gets lost, but bitcoins do, rigth now.

i think this will not matter much when people are using it in everyday transactions, and nobody owns much money(some do, and their wallets will be heavily guarded).
talking about transactions of the size ~0.0001 btc thats no problem.
the coins that gets lost everyday worldwide is maybe 1-2 btc. but see now how many bitcoins we have thrown away already now, that the real problem...
2611  Bitcoin / Bitcoin Discussion / Re: Introduce Yourself on: June 04, 2011, 07:29:44 PM
I figured there was a bunch of people working on it! Wink
i screwed up English again... it has some thing to do with the "you", right?
2612  Bitcoin / Bitcoin Discussion / Re: Introduce Yourself on: June 04, 2011, 07:11:17 PM
hi! im a high school student from Denmark Cheesy i currently working on bitdrop the Courier network.
im a python/C/bash programmer. and i am a Linux 'fanboy'
nice to see you all.

The Bitdrop sounds great! looking forward to seeing what you come up with!
oh. it not just me, there is a whole bunch of people working on it. Smiley
2613  Bitcoin / Project Development / Re: Bitval - Monitor the bitcoin exchangerate live on: June 04, 2011, 06:19:19 PM
The FF error console says: "WebSocket is not defined".
its because websockets don't work in FF, only in chrome i think...
You can find it here: http://bitval.dorphern.dk/

FEDT! er du dansk?

haha ja, det er jeg! :-) Troede sku ikke der var mange andre danskere herinde !
der er nogle stykker... ik så mange, se her: http://forum.bitcoin.org/index.php?topic=5633.0
2614  Bitcoin / Project Development / Re: Bitval - Monitor the bitcoin exchangerate live on: June 04, 2011, 06:04:29 PM
The FF error console says: "WebSocket is not defined".
its because websockets don't work in FF, only in chrome i think...
You can find it here: http://bitval.dorphern.dk/

FEDT! er du dansk?
2615  Local / Skandinavisk / Re: Dansk - bitcoin.dk on: June 04, 2011, 05:54:51 PM
http://z1x.dk/2011/06/digital-art-for-bitcoins/
Her er da i hvert fald en lille idé, som jeg håber nogen ville kunne finde lidt sjov i.
fed ide Cheesy
2616  Bitcoin / Development & Technical Discussion / Re: Scripting? on: June 04, 2011, 05:28:24 PM
There are currently only two scripts allowed in transactions. You want more

As soon as somebody codes a use for it in the standard bitcoin client, discusses it here, tests it out on the testnet and makes a pull request.

Otherwise you will have to send special transactions to a special miner and pay a fee, lest they never be included in a block. And of course your receiver will need a special version of the bitcoin software to redeem the transaction.
is the miners really blocking wierd transactions?

all scripts are allowed, i think... but the official bitcoin client only emits 2 types.
2617  Other / Politics & Society / Re: I will admit something... on: June 04, 2011, 07:14:30 AM
no. there should be the choice: pay or leave.

You must live in a highly populated area with lots of wonderful infrastructure that was built completely with government tax monies.

Where is this fantasy land?
denmark, amager.
but im paying nothing!
i get money(government tax monies) to study.
2618  Other / Politics & Society / Re: I will admit something... on: June 03, 2011, 09:53:58 PM
I disagree with the forcing part. It should be opt in/opt out.
no. there should be the choice: pay or leave.
i don't like all them who says: i don't pay taxes, they are bad. only stupid people say that.
intelligent people accept the facts: either i follow the rules and get the benefits, or i keep totally to my self, not paying, and not getting any of the benefits.
2619  Bitcoin / Development & Technical Discussion / Re: Optional fees should be optional on: June 03, 2011, 09:27:17 PM
My fee setting is 0.00

I seem to be using a beta version of the client. 0.3.21-beta

It does not allow me to send any BC out with the setting to 0.00
I get dialouge boxes saying that the transaction is either to complex or above the size limit and and it is impossible to send the BitCoins with it. But I guess maybe I should stop using the beta and this was the problem and this sillyness will not be implemented?
use 0.3.20 i do
2620  Bitcoin / Mining / Re: multi-core 64 bit bitcoin generator? on: June 03, 2011, 09:19:53 PM
edit: also, is it better to mine in smaller pools such as bitcoins.lc or bigger pools such as slush's pool (I currently mine in that one)?
it makes no dirrents for you.
but it best for the bitcoin community, if you choses the small pool, so we don't get a monopoly on mining.
an attack against the network can be done if you have 50% of the hashing power.
Pages: « 1 ... 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 [131] 132 133 134 135 136 137 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!