Bitcoin Forum
May 10, 2024, 10:18:07 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 [405] 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 »
8081  Bitcoin / Development & Technical Discussion / Re: Version 0.3.14 on: October 22, 2010, 06:55:14 PM
Satoshi, could you tell me of what revision is this version ?

I tried diff-ing the files (from SVN and from the binary package with sources), but there seems to be some kind of binary differences in the files, and they are marked as different when doing directory compare, but diff software cannot pinpoint what are the exact differences !!

That is the weirdest thing i have seen in a long time.
Perhaps the files from the package are encoded in UTF-8, UTF-16 or something ? In SVN, they are noticeably smaller.

SVN has Unix line endings, while the source in the packages has Windows line endings. The files are otherwise exactly the same.
8082  Economy / Economics / Re: Price Deflation Discourage Investment? on: October 22, 2010, 04:30:25 PM
I very much doubt that a fork would include a fork of the block chain.  I think it would consist of a fork of the software, that would be launched from a brand new block chain.

In this case, I think the block chain would be kept for both versions. Both will perceive the other as "breaking the rules", and see themselves as the legitimate version of Bitcoin.
8083  Economy / Economics / Re: Price of gold in bitcoins : a naïve approach on: October 22, 2010, 04:18:59 PM
When comparing the max number of bitcoins to the current USD M1, 1 BTC = ~84,076 USD. Cheesy
8084  Bitcoin / Bitcoin Technical Support / Re: ERROR - PLEASE HELP ME! on: October 22, 2010, 04:06:04 PM
Dhaw generated all of these coins on his (her?) own machines.

Unfortunately, either due to a bug or some oddness with Dhaw's network connections they were all generated on an alternate block chain.

The Bitcoin client really shouldn't allow coin generation until you have all of the blocks up to the last block checkpoint.

That's probably the case, but something must have failed really badly. His block count is constantly stuck at 1698, but he somehow managed to generate and mature 13,000 BTC? He's generating at a work computer, so maybe it's some crazy antivirus.

Just to be sure that the entire balance is bad (maybe it just failed recently), Dhaw should post the raw transaction so that the inputs can be checked against the block chain.

Dhaw:
1. On the computer where you sent the 8,750, modify the Bitcoin shortcut so it runs in debug mode:
http://img264.imageshack.us/img264/2526/85647303.png
http://img146.imageshack.us/img146/723/90684161.png
2. Run Bitcoin.
3. Double-click the 8,750 transaction:
http://img525.imageshack.us/img525/6200/90747626.png
4. Copy all of the "inputs" to http://pastebin.com/ and post the link here.
http://img263.imageshack.us/img263/6645/68205424.png
To copy from that window, you have to use Ctrl+C after selecting the text. I've found that it sometimes takes a few tries to work.
8085  Economy / Economics / Re: Price Deflation Discourage Investment? on: October 22, 2010, 12:18:23 PM
And if bitcoins were to be modified in order to allow arbitrary increase of the total amount, I will immediately sell all my bitcoins to buy gold and silver.

Bitcoin would almost certainly be forked if that happened. The fork could easily preserve all Bitcoin balances up to the change.

This situation would be great for early adopters, since you'd be able to legitimately double-spend all of your pre-fork balances.
8086  Bitcoin / Bitcoin Technical Support / Re: ERROR - PLEASE HELP ME! on: October 21, 2010, 10:00:26 PM
Dhaw sent me some of his debug.log files. Symptoms I saw:
- In most of the files his block count remains "stuck" at 1698.
- In one file he accepted blocks beyond that, but it went back to 1698 after he restarted Bitcoin.
- Any blocks he receives after 1698 he probably considers invalid. I haven't seen the actual block rejection (it keeps getting removed by the auto-trim), but his debug.log is full of "block xxx have" messages for blocks that he clearly doesn't recognize as valid.
- He is connected to real peers. He connected successfully to IRC, and he was able to connect to me with -addnode. I verified at my end that he is successfully sending getblocks messages.

I'm almost sure that Dhaw is not a scammer, and is a victim of some bug. My guess is that every time he restarts Bitcoin, his block database is corrupted.

He speaks 'Portuguese (Brazilian)'. A translator would be helpful.
8087  Bitcoin / Development & Technical Discussion / Re: using ecryptfs to protect your wallet on: October 21, 2010, 09:29:04 PM
I use dm-crypt. You must be root to mount the encrypted device. You can use a file-based container with a loop device.

My mount script:
Code:
losetup /dev/loop0 /encrypted

HASH=`hashalot -s salt sha256 | hexdump -e '32/1 "%02x"'`
echo 0 `blockdev --getsize /dev/loop0` crypt aes-cbc-essiv:sha256 \
$HASH 0 /dev/loop0 0 | dmsetup create hidden

Unmount:
Code:
dmsetup remove hidden && losetup -d /dev/loop0
8088  Bitcoin / Bitcoin Technical Support / Re: Bitcoin start-up on: October 20, 2010, 10:52:43 PM
Probably all 4 billion IP addresses are on some black list or other. These lists are extremely unreliable.

Feel free to block them if you want. Bitcoin will use the backup bootstrap method, which is slower but just as effective.
8089  Bitcoin / Bitcoin Technical Support / Re: Bitcoin start-up on: October 20, 2010, 09:56:33 PM
The port 80 addresses are used for determining your external IP addresses (www.ipaddressworld.com, checkip.dyndns.org). Port 6667 is IRC, which Bitcoin uses for bootstrapping (irc.lfnet.org).

It's also possible for Bitcoin peers to run on different ports, though they would have to modify the source code.
8090  Economy / Marketplace / Re: SELL 4,200 BTC! on: October 20, 2010, 04:08:21 AM
Nobody will buy your if you have no reputation.

If he sends the BTC first, there's no problem. You would be the one who could issue a chargeback.
8091  Bitcoin / Development & Technical Discussion / Decentralized Bitcoin scratch-off cards on: October 20, 2010, 03:55:18 AM
When talking about physical Bitcoin cards/tokens, most people assume that either a central server or use of QR codes would be needed to redeem the bitcoins. However, it is possible to use Bitcoin's scripting system to make bitcoin transactions redeemable with a short code, without any centralized server.

The person who is creating the physical Bitcoin card creates a transaction with an output like this:
Code:
<most of private key> OP_DROP OP_DUP OP_HASH256 <hashed code> OP_EQUALVERIFY <public key> OP_CHECKSIG

Then to redeem this transaction, the person who receives the card creates a transaction to himself with an input containing the code and signature. The code and the rest of the private key are on the card.

I imagine that a Bitcoin scratch-off would have the full transaction hash on the front and the code/key under the scratch-off portion in base58. To redeem, start typing the hash into your Bitcoin client until it tells you that it has enough to identify a single transaction (only 4-8 bytes are necessary). Then type the code/key. The money is instantly yours, with no central server necessary. If you have a computer handy while buying the card, you can verify that a card is still valid by looking at the hash on the front (the code could be fake, of course).

The first few bytes of the private key can be used as a salt.

Without the public/private keys, it would be easy for any man-in-the-middle (including any Bitcoin node) to rewrite your transaction to himself after receiving it. It's still possible for him to do this, but he would have to preemptively brute-force the full private key from the portion in the transaction, and then he would have to re-sign his new transaction on-the-fly in less than a few seconds. I think this makes the attack difficult enough for the scheme to be usable.

This can be significantly improved if the mathematical script functions are enabled (alternatively, I believe OP_SUBSTR could do the same thing):
- The output of the first transaction contains the full private key, but it requires that the provided signature start/end with some number of zeroes.
- To redeem, you need to modify and re-sign your transaction (using a nonce value with OP_DROP) many times to get a signature that meets the requirement. The number of zeroes required should be set so that this calculation takes only 5-10 minutes on most computers.
- To modify your transaction, the attacker needs to re-sign the transaction. However, he can't do it in less than the 5 seconds or so required because of the proof-of-work.

An 8-byte code would probably be sufficient. Each byte has 256 different possible combinations instead of the 96 with standard ASCII, so this would be stronger than a 16-character totally-random password. I'm unsure about the security of giving away a partial private key; if it's only possible to brute-force, 16 bytes would probably be enough, though I'd probably err on the side of caution with 32 bytes.

So if the arithmetic functions are enabled in Bitcoin, that's less than 20 characters you'd have to type: 8-10 characters for the transaction hash and 8-10 characters for the code. Anyone could generate these codes. It might be a useful cash-alternative among people who already trust each other, and it'd be very convenient for selling bitcoins at physical shops.

(Edit: realized how to use a salt without OP_CAT.)
8092  Bitcoin / Development & Technical Discussion / Re: Python code for validating bitcoin address on: October 20, 2010, 01:50:10 AM
For every leading 0x00 byte, add a leading 1 (encode). For every leading 1, add a 0x00 byte (decode). For encode, don't accept input that doesn't have an even number of bits (divisible by eight), as this doesn't make sense. For decode, pad leading zeros until you have an even number of bits.

I just check that the output immediately post-DecodeBase58 (including leading zeroes, checksum, versionNumber) is 25 bytes long. I think that Bitcoin does something similar to this.

I made some web tools for dealing with addresses:
http://theymos.ath.cx:64150/q/checkaddress
http://theymos.ath.cx:64150/q/addresstohash
http://theymos.ath.cx:64150/q/hashtoaddress
http://theymos.ath.cx:64150/q/hashpubkey
(Source not public yet.)
8093  Bitcoin / Development & Technical Discussion / Re: [RFC] Best method for initial block download? on: October 18, 2010, 11:26:44 PM
Most of the "download" time is actually caused by the verification of all the blocks (doing the crypto verification on 130,000+ transactions). The actual download doesn't take very much time at all, as you can see if you download the database files. Things could be sped up considerably if Bitcoin just skipped verification on blocks before the latest checkpoint. There's a philosophical difference, though, which is probably why this is not already done: the checkpoints tell you when the blocks are wrong, but skipping verification would tell you when they are right, which makes things more centralized.
8094  Other / Off-topic / Re: DGCmagazine Bitcoin Issue on: October 18, 2010, 07:14:28 PM
The article is full of plagiarism from Bitcoin Market and bitcoin.org.
8095  Economy / Economics / Re: Reputation and game theory on: October 18, 2010, 04:11:59 PM
Harley4noble is a spam bot...
8096  Bitcoin / Development & Technical Discussion / Re: Key pool feature for safer wallet backup on: October 18, 2010, 01:55:09 AM
As I understood generated coins will not be in the key pool. Am I right?

They will be. Everything is.

Every received IP transaction creates a new address (taken from the pool), so be careful if you are accepting those. Someone could empty your pool in a few minutes.
8097  Bitcoin / Development & Technical Discussion / Re: Is it possible to detect double spending in the > 50% network takeover scenario? on: October 17, 2010, 01:18:42 AM
What I'm asking, is can the client know that these two 0 transactions exist? If that is possible, could the client not allow the transaction to be available for spend until like 10 transactions?

Yes. It's a good idea. If a transaction that conflicts with yours is spotted through the network or in a block (even a block in a shorter chain), then remove your version from all RPC listings and display it specially in the UI. The existence of any conflicting transaction means that the person who sent you the transaction is trying to defraud you.
8098  Bitcoin / Development & Technical Discussion / Re: Is it possible to detect double spending in the > 50% network takeover scenario? on: October 16, 2010, 11:11:05 PM
If I send you 100 BTC's, from wallet abc to your efg, what split would occur naturally? If the network were split, potentially both could have the same spend... right? But they would be to the same wallet.

If you double-spend, then both recipients will get transactions with 0 confirmations. The network isn't sure yet which one came first, since the simple TCP network can't be counted on. Normally after one block the network will decide which one is valid. However, it is possible (though unlikely) for two blocks containing different versions of the transaction to be generated at the same time, in which case it would take another block to figure out which one is valid. (It's possible for this to happen a second time, but too unlikely to think about.)

So a detection mechanism could say, "This new block would replace a block that is 5 blocks deep in the main chain. Any transactions in that chain that conflict with transactions in the main chain are likely to be double-spends." It could not say (with reliable accuracy), "This new block is now the latest block in the main chain. However, one of its transactions conflicts with one that I received via the TCP network first, so the block's version must be a double-spend."
8099  Bitcoin / Development & Technical Discussion / Re: Is it possible to detect double spending in the > 50% network takeover scenario? on: October 16, 2010, 06:41:35 PM
You could probably distinguish original transactions from double-spent ones if the attacker is rewriting blocks that are more than one block deep. You can't be sure for transactions with only 0 or 1 confirmations, since this kind of "split opinion" could occur naturally.

If the legitimate network regains control and it's clear that the main block chain is full of double-spends, the network could start building on some shorter chain before the event to reverse the double-spends. This would probably also reverse some legitimate transactions, though.

Just detecting that someone is messing with the network is much easier, and I wouldn't be surprised if Bitcoin does try to detect this at some point.
8100  Economy / Economics / Re: Price Deflation Discourage Investment? on: October 15, 2010, 03:42:04 PM
Quote
The bitcoin community's overall investment seem to be increasing not stagnating.

Bad argument. 7200 BTC are created daily.
Pages: « 1 ... 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 [405] 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!