Bitcoin Forum
May 25, 2024, 03:10: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 24 25 26 27 28 29 30 31 32 [33] 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 »
641  Bitcoin / Development & Technical Discussion / Re: Version 0.6 release candidate 1 on: February 25, 2012, 06:25:06 PM
Will older wallets (the wallet.dat?) get converted to the new format or can this be done somehow without a data-loss?

Dia

Yes; in fact, the wallet format remains compatible as long as no new-style keys are generated. As soon as a new key in generated in 0.6.0 onwards, the wallet will not be compatible anymore with pre-0.6.0 clients.

Note that 0.6.0rc1 does not yet prevent old clients from opening such a new wallet, potentially corrupting the wallet. The next release candidates will do so.
642  Bitcoin / Bitcoin Technical Support / Re: Passphrase Problems on: February 23, 2012, 03:17:49 PM
This looks like some sort of strange corruption occurred in your wallet; can you provide any more details, for example what you did to get it in this state?
643  Bitcoin / Development & Technical Discussion / Re: probability that 2 clients generate the same public key? on: February 22, 2012, 04:09:49 PM
No I meant keys.
Is it not probable the majority of keys ever created will be orphaned at some point?
I suspect lots of private keys will be created for temporary purposes, then deleted or trashed, people will stop using their old wallet, move funds to a new client with a new priv key, stop monitoring the old one.

Certainly; most keys are (and should) only be used once or a limited number of times. For the purposes of this "attack" all that matters is how many addresses exist with a non-zero balance.

The original question is what would happen if you accidentally generate a private key corresponding to an address that already exists. Simple: you get access to any remaining funds available to that key. In case a rescan is done (typically not done when generating a new key, as the software assumes it is fresh), you would indeed see earlier transactions that key's address was involved in.
644  Bitcoin / Development & Technical Discussion / Re: probability that 2 clients generate the same public key? on: February 22, 2012, 03:52:19 PM
Assume there are N different bitcoin addresses possible (2^256).

There are only 2^160 possible addresses, but that hardly matters for the conclusion Wink
645  Bitcoin / Bitcoin Technical Support / Re: Do I need to reload the whole bitcoin chain if I replace my wallet? on: February 20, 2012, 07:01:08 PM
Since 0.3.21, -rescan is only necessary is exceptional cases.

You can swap your wallet.dat just fine without it.
646  Bitcoin / Development & Technical Discussion / Re: Imported private keys into client... how to rescan? on: February 20, 2012, 04:04:35 PM
Start with -rescan
647  Bitcoin / Development & Technical Discussion / Re: Version 0.6 release candidate 1 on: February 20, 2012, 03:33:35 PM
Quote
• How far is this "complete compatibility" with older versions? Can I move a wallet.dat from this new release that's created these new keys to an older release and have it still work?

Good point. It will probably work, but the compressed pubkeys will be considered non-compressed ones by older versions, so they will probably miss transactions. Over time, the ledger seen by older clients and newer clients may diverge. I'll try to fix this before 0.6.0 final is released.

This was fixed in commit 38067c1.
648  Bitcoin / Development & Technical Discussion / Re: probability that 2 clients generate the same public key? on: February 19, 2012, 10:34:04 PM
I know the chances of 2 exact keys is mindbogglingly small, but what would happen if there were?

One of the two would probably be orphaned with a 0 balance on it.

One of the two what? You seem to be talking about transactions instead of keys here.
649  Bitcoin / Development & Technical Discussion / Re: probability that 2 clients generate the same public key? on: February 19, 2012, 09:29:06 PM
I know the chances of 2 exact keys is mindbogglingly small, but what would happen if there were?
they could spend each others coins.

The keys don't need to be identical by the way - only their corresponding addresses.
650  Bitcoin / Development & Technical Discussion / Re: probability that 2 clients generate the same public key? on: February 18, 2012, 09:05:54 PM
Not only do the reoccurring address-privkey strings take up a whole bunch of space, but you may be able to shorten down the private keys further by removing sipa's error correction. If you're generating standard-version addresses, you can strip the prefixing 1 out as well.

Or you can store everything in binary, without the base58 whatsoever. 32 bytes for a privkey, 20 bytes for an address.

Down to 5742252960529749071145716877414485176439322664845761613895220154201014272 MiB.
651  Bitcoin / Development & Technical Discussion / Re: probability that 2 clients generate the same public key? on: February 18, 2012, 08:46:00 PM
Similarly, what would be the size of a .txt file (in Megabytes) that had ALL possible Addresses & Privkeys in the following format:

11705361804156796183489345942421835167357080816800975597555641083563606016 MiB.
652  Bitcoin / Development & Technical Discussion / Re: probability that 2 clients generate the same public key? on: February 18, 2012, 04:09:34 PM
Assume the entire bitcoin network's computational power is used for generating addresses, we'd see about 1000 billion addresses generated per second (it's around a factor 10 slower at least than hash testing). Assume this speed is maintained for as long as bitcoin mining is subsidized (until around 2140), we'd see about 4*10^17 addresses.

Since there are around 1.4*10^48 possible addresses, the chance that a duplicate is found can be calculated using the birthday problem as 1-exp(-(4*10^17)^2/(2*1.4*10^48)), or approximately 0.000000000005%, which means one in 20000 billion.

For all intents and purposes this chance can be considered 0.
653  Bitcoin / Development & Technical Discussion / Re: possible security issue due to stupid users? on: February 18, 2012, 12:38:24 AM
@Steve
I agree with you that it can be very confusing to have the same key in multiple wallets.
It can be very powerful however - you can have a wallet in, say, blockchain.info and MultiBit that have the same private keys and both get updated in lockstep with each other.

Jim,

that feature is called "determinstic wallets" usually - it is specifically designed for ease of backup and the ability to have several clients share the same (piece of) wallet without them diverging from eachother. Using some EC math tricks, you can do very nice things, such as a "read only" version that does not allow spending.

Read more here.
654  Bitcoin / Development & Technical Discussion / Re: send BTC generate new address? on: February 16, 2012, 02:59:09 PM
Couldn't you just use "sendmany" to send to the recipient and back to your own address?  (I haven't tried this)
Yes, you can.

Except you don't know which input sendmany is going to use, so you don't know how much to send back.
655  Bitcoin / Bitcoin Technical Support / Re: TestNet Question on: February 15, 2012, 09:27:48 PM
Nothing, but there are hardly any miners on the testnet network. This may result is very large variations in confirmation speed.
656  Bitcoin / Development & Technical Discussion / Re: send BTC generate new address? on: February 15, 2012, 09:25:49 PM
This isn't technically possible. There is no way to spend just part of the balance of an address. You have to spend it all, so the client sends the rest ("change") back to itself.

This is not correct. There is no way to spend just part of a single transaction output ("coin"), but the balance of an address may consist of several transaction outputs, in which case they can be spent individually.
657  Bitcoin / Development & Technical Discussion / Re: vanitygen wont work! on: February 14, 2012, 05:20:19 PM
It is not a GUI tool, running the exe will start it without arguments, so it will just show its help text and exit immediately.

What you want to do is start a command-line (start -> execute -> "cmd" or something in windows), go to the directory the program is in (using cd [dirname]), and then type "vanitygen", and see what it tells you about what arguments it accepts.
658  Bitcoin / Development & Technical Discussion / Re: BIP 16 is going to be much more disruptive than advertised on: February 14, 2012, 05:13:27 PM
I believe makomk is right here: old clients only use "only pushes" as criterion for validating an input's standardness.

Still, as soon as BIP16 is deployed with a supermajority of miners behind it, the other miners already have a large incentive to upgrade. This is one extra reason they will want to do so.

However, if switching happens at exactly 55% support, there still exists a 0.83% chance to have 6 consecutive blocks by old miners, which means a small but reasonable chance old nodes see an invalid from-BIP16 transaction with 6 confirmations. This is an extra reason for requiring significantly more than 55% support, imho.
659  Bitcoin / Development & Technical Discussion / Re: vanitygen wont work! on: February 14, 2012, 05:07:37 PM
You probably want to run it from a command-line, so you can give it information about what it needs to search for.
660  Bitcoin / Bitcoin Discussion / Re: Fantastic Magic Wallet Creator 0.1 GRANDMA PROOF!! [OSX-standalone] PIXXXXX!!!!! on: February 13, 2012, 09:49:02 PM
This is pretty cool.  I'm a old unix guy, so I'm actually more comfortable using the command line than a GUI, but I can see how many people would like this.

For me, I'd rather
$ python2.7 pywallet.py --importprivkey=xxxxxx

 Grin

What about
$ ./bitcoind importprivkey xxxxx
? (bitcoin v0.6)
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 [33] 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!