casascius
Mike Caldwell
VIP
Legendary
Offline
Activity: 1386
Merit: 1140
The Casascius 1oz 10BTC Silver Round (w/ Gold B)
|
|
March 28, 2012, 04:21:10 AM |
|
Having a rather interesting issue. About 3% of returned public addresses from the bulk wallet are one byte short. Here's a few for your perusal: ... Not sure what's causing it...
It is normal and these keys are valid. Such addresses will be produced by all generators including the reference Bitcoin client. Such keys represent hashes that happen to start with several zero bits. The bitcoin address encoding scheme specifies an unusual way of encoding leading zero bits that results in a shorter address when the leading zero bits can be inferred from the other characters.
|
Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable. I never believe them. If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins. I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion. Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice. Don't keep coins online. Use paper or hardware wallets instead.
|
|
|
bitpop
Legendary
Offline
Activity: 2912
Merit: 1060
|
|
April 30, 2012, 01:05:58 PM |
|
1. Could you remove consecutive dashes from your comments in the html? -- is bad, - - is good. 2. Could you link to this forum on the site?
|
|
|
|
Stephen Gornick
Legendary
Offline
Activity: 2506
Merit: 1010
|
|
April 30, 2012, 09:59:44 PM |
|
1. Could you remove consecutive dashes from your comments in the html? -- is bad, - - is good.
Really? In the comments, or where does this cause a problem?
|
|
|
|
bitpop
Legendary
Offline
Activity: 2912
Merit: 1060
|
|
April 30, 2012, 10:00:59 PM |
|
No problem, just not html valid, I think this is new.
|
|
|
|
bitpop
Legendary
Offline
Activity: 2912
Merit: 1060
|
|
April 30, 2012, 10:01:50 PM |
|
|
|
|
|
pointbiz (OP)
Sr. Member
Offline
Activity: 437
Merit: 415
1ninja
|
|
May 01, 2012, 01:29:23 AM |
|
1. Could you remove consecutive dashes from your comments in the html? -- is bad, - - is good. 2. Could you link to this forum on the site?
1) I'd rather not discuss HTML validation. I've found it rather pointless in the past. 2) The link (not hyper-link) is here: https://www.bitaddress.org/pgpsignedmsg.txt
|
|
|
|
dooglus
Legendary
Online
Activity: 2940
Merit: 1333
|
|
May 01, 2012, 01:41:04 AM |
|
1) I'd rather not discuss HTML validation. I've found it rather pointless in the past.
I quite agree. Why bother adhering to standards? So long as it works in my favourite browser, screw the rest of you.
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
bitpop
Legendary
Offline
Activity: 2912
Merit: 1060
|
|
May 02, 2012, 03:29:18 AM |
|
no problemo, its just your code is so perfect and amazing, theres just 1 error from ultimate perfection.
|
|
|
|
bitpop
Legendary
Offline
Activity: 2912
Merit: 1060
|
|
May 02, 2012, 05:20:02 AM |
|
|
|
|
|
payb.tc
|
|
May 21, 2012, 01:08:11 PM |
|
can someone please explain how 'wallet details' tab can produce two different bitcoin addresses for the one private key? if i generated one of those, and sent 1 btc to each of those addresses, what would happen when i import that private key? would it show 2 btc? what address would it show?
|
|
|
|
dooglus
Legendary
Online
Activity: 2940
Merit: 1333
|
|
May 21, 2012, 06:06:20 PM Last edit: May 21, 2012, 06:36:41 PM by dooglus |
|
can someone please explain how 'wallet details' tab can produce two different bitcoin addresses for the one private key? if i generated one of those, and sent 1 btc to each of those addresses, what would happen when i import that private key? would it show 2 btc? what address would it show? Do you have an example of how to get it to do that? I've never seen it happen. Each private key should map to exactly one bitcoin address, although two private keys can (incredibly rarely) map to the same bitcoin address. Edit: oh, you're talking about how it shows the regular and compressed addresses? They're equivalent. If you sent 1 btc to each of those addresses and imported the private key, you would see 2 btc at the same address. Which address it shows would depend on the client you used. I'll do it now and edit this post with the results. I used vanitygen to make a 'bita' address, put the private key into bitaddress and found the two bitcoin addresses to be: Bitcoin Address: 1BitaU837DThJpnSY6ppU8Nu8Z9VGd49U1 Bitcoin Address (compressed): 13jETWnEo69sKwPdYQNqwcqMg9mnyapzNr Here are the transactions at http://bitcoincharts.com/bitcoin/txlist/ awaiting confirmation: Hmm. It's only showing 1 BTC in the new wallet with the imported private key, even though both transactions are confirmed and in my copy of the blockchain. I wonder if this is a bitcoin client bug. http://blockchain.info/address/1BitaU837DThJpnSY6ppU8Nu8Z9VGd49U1 and http://blockchain.info/address/13jETWnEo69sKwPdYQNqwcqMg9mnyapzNr are showing a balance of 1 BTC each. This isn't safe to depend on and is unlikely to be true for very long, if it is even true at all. The developers have proposed a private key format that includes a flag to indicate that it corresponds to a compressed public key. For a client to always take a private key and generate TWO bitcoin addresses from it is a needless doubling of resource consumption and complexity and is unlikely to become the status quo.
Seems it wasn't true at all... So how do I access the 1 BTC I sent to the address corresponding to the compressed address?
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
casascius
Mike Caldwell
VIP
Legendary
Offline
Activity: 1386
Merit: 1140
The Casascius 1oz 10BTC Silver Round (w/ Gold B)
|
|
May 21, 2012, 06:23:31 PM |
|
can someone please explain how 'wallet details' tab can produce two different bitcoin addresses for the one private key? if i generated one of those, and sent 1 btc to each of those addresses, what would happen when i import that private key? would it show 2 btc? what address would it show? Do you have an example of how to get it to do that? I've never seen it happen. Each private key should map to exactly one bitcoin address, although two private keys can (incredibly rarely) map to the same bitcoin address. Edit: oh, you're talking about how it shows the regular and compressed addresses? They're equivalent. If you sent 1 btc to each of those addresses and imported the private key, you would see 2 btc at the same address. Which address it shows would depend on the client you used. I'll do it now and edit this post with the results. This isn't safe to depend on and is unlikely to be true for very long, if it is even true at all. The developers have proposed a private key format that includes a flag to indicate that it corresponds to a compressed public key. For a client to always take a private key and generate TWO bitcoin addresses from it is a needless doubling of resource consumption and complexity and is unlikely to become the status quo.
|
Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable. I never believe them. If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins. I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion. Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice. Don't keep coins online. Use paper or hardware wallets instead.
|
|
|
dooglus
Legendary
Online
Activity: 2940
Merit: 1333
|
|
May 21, 2012, 07:21:42 PM |
|
Seems it wasn't true at all... So how do I access the 1 BTC I sent to the address corresponding to the compressed address?
I had to import the compressed private key to get the compressed address in my client, then I could spend the 2 BTC back to my main wallet: $ bitcoind importprivkey 5KVdACbmHJJLxapsSjQyavyN4LdXtWc4xz7jeowDWxwbcNMRneS bita-regular $ bitcoind importprivkey L4dLbcCSSwMZ6LJHeaCpkmDmwjeFLMfnW76jFtAJFFuykgqR5UGo bita-compressed
Put those two private keys into bitaddress and you get the exact same output for both. The bitaddress output shows: Private Key WIF (51 characters base58, starts with a '5'): 5KVdACbmHJJLxapsSjQyavyN4LdXtWc4xz7jeowDWxwbcNMRneS Private Key WIF (compressed, 52 characters base58, starts with a 'K' or 'L'): L4dLbcCSSwMZ6LJHeaCpkmDmwjeFLMfnW76jFtAJFFuykgqR5UGo so you just need to import both of the private keys if you want to be able to receive coins to both of the bitcoin addresses. Then the client treats the two addresses as if they were really different addresses:
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
payb.tc
|
|
May 21, 2012, 09:35:42 PM |
|
thanks for the above explanations/experiments.
my main concern is being able to access my 'brain wallet' in future.
so if i only ever send to the non-compressed bitcoin address, then i must import the non-compressed private key to spend them.
that means an important question is; will the 0.6+ standard client always be able to do this or should i just start over with the compressed types?
got a bit worried that i might lose access to it, but as long as i remember my passphrase i should be okay, right?
|
|
|
|
dooglus
Legendary
Online
Activity: 2940
Merit: 1333
|
|
May 21, 2012, 09:50:55 PM Last edit: May 21, 2012, 10:28:59 PM by dooglus |
|
so if i only ever send to the non-compressed bitcoin address, then i must import the non-compressed private key to spend them.
That's right. that means an important question is; will the 0.6+ standard client always be able to do this or should i just start over with the compressed types?
got a bit worried that i might lose access to it, but as long as i remember my passphrase i should be okay, right?
There are many unclaimed outputs to uncompressed public keys, and always will be. Since it's impossible to know by looking at just transaction outputs which of them correspond to private keys that have been lost forever, or even which are to compressed and which are to uncompressed public keys, the client will have to continue supporting uncompressed addresses forever, or risk making a significant proportion of all bitcoins unspendable. Make sure you keep a copy of bitaddress's source code somewhere safe in case the site goes offline; then you'll always be able to recreate the private key from the passphrase in your brain.
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
payb.tc
|
|
May 21, 2012, 09:57:32 PM |
|
Make sure you keep a copy of bitaddress's source code somewhere safe in case the site goes offline; then you'll always be able to recreate the private key from the passphrase in your brain.
yep got the exact version (1.5) saved and backed up, thanks.
|
|
|
|
cbeast
Donator
Legendary
Offline
Activity: 1736
Merit: 1014
Let's talk governance, lipstick, and pigs.
|
|
May 21, 2012, 11:59:18 PM |
|
Make sure you keep a copy of bitaddress's source code somewhere safe in case the site goes offline; then you'll always be able to recreate the private key from the passphrase in your brain.
yep got the exact version (1.5) saved and backed up, thanks. It should work with any SHA256 hashing program to create the private key.
|
Any significantly advanced cryptocurrency is indistinguishable from Ponzi Tulips.
|
|
|
dooglus
Legendary
Online
Activity: 2940
Merit: 1333
|
|
May 22, 2012, 12:14:56 AM |
|
It should work with any SHA256 hashing program to create the private key.
This is true, but the satoshi client wants it in base58 with a checksum for the importprivkey command, so it's easier to use bitaddress to do that.
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
payb.tc
|
|
May 22, 2012, 12:16:26 AM |
|
It should work with any SHA256 hashing program to create the private key.
This is true, but the satoshi client wants it in base58 with a checksum for the importprivkey command, so it's easier to use bitaddress to do that. on the other hand, i think pywallet is happy with the regular hex string. even after a year, i'm still learning new things about bitcoin
|
|
|
|
dooglus
Legendary
Online
Activity: 2940
Merit: 1333
|
|
May 22, 2012, 01:47:10 AM |
|
Whatever works for you.
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
|