Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: casascius on October 05, 2011, 01:09:33 PM



Title: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: casascius on October 05, 2011, 01:09:33 PM
I'm pleased to be able to report that MagicalTux has just added the ability to redeem Bitcoin private keys on MtGox.

Simply go to the "Add Funds" screen.  There is a new choice: "Redeem Private Key".  There are sub-choices for full length private keys versus the ones used on Casascius coins.

When you enter a code, it is treated as a new deposit to your account (including you must wait for six confirmations).

MagicalTux says that when you redeem a code, MtGox keeps the private key and will auto-sweep any future funds sent to that key into your MtGox account.

I did a quick test, tearing open one of my coins.  For the time being, the only immediate response is "Sending code...", the balance of the coin is not shown on the screen, possibly until the six confirmations are received.  However I could see that the coin balance got swept by checking the unconfirmed transactions list at bitcoincharts.

Round of applause for MagicalTux for these and the other newly released features on MtGox.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: Yankee (BitInstant) on October 05, 2011, 01:47:55 PM
GREAT JOB!

Will add some nice liquidity + boost your sales

I'm thinking of buying a few of your Casascius Physical Bitcoins as gifts now. Maybe for the future you can add like a 'How to Redeem' for newbies instructions using MtGox.

Charlie


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: payb.tc on October 05, 2011, 01:52:12 PM
hmmm more ways to put money into gox.

if i weren't having trouble getting money out of gox, i'd find this really handy.

well, hopefully it sets the scene for more websites to do something similar.

good stuff.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: worldinacoin on October 05, 2011, 01:53:27 PM
This is great!  Another venue to get hold of these lovely coins!


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: Yankee (BitInstant) on October 05, 2011, 02:01:38 PM

if i weren't having trouble getting money out of gox, i'd find this really handy.


We're working on that right now  ;)
Soon, we'll have instant withdrawals in addition to our current instant deposits. Supporting 5 bitcoin exchanges.
Will keep ya updated

BitInstant.com



Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: BkkCoins on October 05, 2011, 02:13:27 PM
So am I right in thinking this allows using bitaddress.org to print a paper wallet.

Then do some transactions receiving BTC and then easily dump the balance into MtGox?

All without the vulnerability of wallet.dat being hacked or needing to use a client or download the block chain? This seems like a nice way for lightweight Bitcoin users to get going quickly.



Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: casascius on October 05, 2011, 02:22:08 PM
So am I right in thinking this allows using bitaddress.org to print a paper wallet.

Then do some transactions receiving BTC and then easily dump the balance into MtGox?

All without the vulnerability of wallet.dat being hacked or needing to use a client or download the block chain? This seems like a nice way for lightweight Bitcoin users to get going quickly.

YES.  In my ideal vision of Bitcoin, the average unbanked (and computer illiterate) Joe should be able to use bitcoins without needing to run software or download a block chain.  Joe should be able to think of paper wallets much the same as gift cards.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: Tonka Branded Truck on October 05, 2011, 05:00:07 PM
This is so awesome!! Glad you're doing strong work.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: Cryptoman on October 05, 2011, 05:27:17 PM
I tried it too and still have the "Sending code..." message at the top of the screen.  I sent some coins to the address, so we'll see what happens.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: 2112 on October 05, 2011, 05:49:39 PM
I did a quick test, tearing open one of my coins.
How much do you charge for a "circulated physical bitcoin"? I mean a complete used coin, that was loaded, tamper-evident seal torn off, bitcoin then spent. Something of numismatic quality "very fine grade circulated", I guess the seal will be evidently damaged, but still recognizable and 100% readable, maybe glued back to a piece of transparent plastic?

Terms: payment in USPS money order, shipment 1st class contiguous states.

Thanks.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: Cryptoman on October 05, 2011, 06:12:38 PM
8 confirmations and no joy.    :-\


EDIT: So what's the easiest way to import a private key to gain control over my missing coins?


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: BurtW on October 05, 2011, 08:44:16 PM
I use StrongCoin.com because all private key math is done on my computer in Javascript and not on the server.  The server only keeps encrypted versions of the private keys so the server (and server owner) does not have access to the Bitcoins.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: casascius on October 05, 2011, 08:47:42 PM
Hopefully the sweepprivkey proposal will become more of a reality than a proposal, and then every website that accepts Bitcoins can be easily made to also accept Bitcoin deposits directly.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: MagicalTux on October 06, 2011, 03:12:14 AM
We have fixed the bug with the "sending code" message remaining.

Please also make sure you did not make any mistake when writing the private key (it'll show you any bitcoin that was swept).


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: mndrix on October 06, 2011, 03:09:08 PM
We have fixed the bug with the "sending code" message remaining.

It looks like a new bug has been introduced.  On the page for redeeming private keys, there are two options labeled "Standard private key". It looks like this:

http://commondatastorage.googleapis.com/bitcoin/mtgox-private-key-error.png


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: Cryptoman on October 06, 2011, 05:00:00 PM
OK, so I tried entering the private address again and got a message:

Private address added to your virtual wallet with address 1xxxxx......

This has me a little confused.  I originally generated the keypair using bitaddress.org.  It provided me with both a Bitcoin address and a private key.  Mt Gox doesn't have the public key from this keypair, so they cannot generate a corresponding address.  The address they gave me is not the correct one for the original keypair, of course.  What does this new address do, specifically?  Why do I need another address if I still have the original?  Does Mt Gox now own my private key, and should I no longer use the associated address?  The balance from the imported key still hasn't shown up in my account.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: nhodges on October 06, 2011, 05:12:36 PM
Does it support sending back out via that private key? That would be awesome.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: casascius on October 06, 2011, 05:17:15 PM
Does it support sending back out via that private key? That would be awesome.

You wouldn't want this.  It has non-ideal security implications.  If you want to stay safe, don't re-use private keys once you've typed them into a website.  Use a new one.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: BurtW on October 06, 2011, 05:49:52 PM
Of course it supports it all you have to do is tell Mt Gox to send Bitcoins to the corresponding public key, however since you have imported the private key into your Mt Gox account the coins would just be sent from your Mt Gox account back into your Mt Gox account, unless I am missing something in your question.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: andrewbadr on October 06, 2011, 06:47:12 PM
Great work! I'm handing out some of my casascius coins to friends, and having this feature will make the explanation a lot easier.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: BkkCoins on October 07, 2011, 12:02:31 AM
This has me a little confused.  I originally generated the keypair using bitaddress.org.  It provided me with both a Bitcoin address and a private key.  Mt Gox doesn't have the public key from this keypair, so they cannot generate a corresponding address.  The address they gave me is not the correct one for the original keypair, of course.  ...
Maybe I'm confused but I thought the address was a hash of the key, not a public key. I would expect once you redeem the key at MtGox that key becomes one of the ones attached to your account just like other keys they generate for you.

So any funds sent to that address later would end up in the account. I'm not sure about this. The difference would be that you could potentially spend money from that address without having to withdraw it using the MtGox interface. Or, alternately perhaps they transfer funds into your account and leave the key empty so that such "outside withdrawls" cannot occur.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: evoorhees on October 07, 2011, 01:59:17 AM
Hmmm okay I tried using bitaddress, generated a new keypair, and sent one coin to the address: 1QGUNoJ799PKGrFuPrXJPRM3ZsHPoHh1rh

I've tried "redeeming" this with MtGox (using the long-ass private key) a couple times now (including yesterday) and nothing is showing up. You can see the 1 btc is still at the address above.

Any help?


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: pointbiz on October 07, 2011, 02:13:29 AM
Hmmm okay I tried using bitaddress, generated a new keypair, and sent one coin to the address: 1QGUNoJ799PKGrFuPrXJPRM3ZsHPoHh1rh

I've tried "redeeming" this with MtGox (using the long-ass private key) a couple times now (including yesterday) and nothing is showing up. You can see the 1 btc is still at the address above.

Any help?

bitaddress.org provides the private key in "Sipa Wallet Import Format" and MtGox is expecting "Standard Format".
I'm working on a new tab for bitaddress called "Wallet Details" it will have one input box for the private key and I will auto-detect the format and display the private key in the various different formats including the "Standard Format" required by MtGox.


THANKS to MtGox for this super cool feature of private key redeeming!! I hope they add an auto-detect for all the different private key formats.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: nhodges on October 07, 2011, 04:07:53 AM
Of course it supports it all you have to do is tell Mt Gox to send Bitcoins to the corresponding public key, however since you have imported the private key into your Mt Gox account the coins would just be sent from your Mt Gox account back into your Mt Gox account, unless I am missing something in your question.

I want to send out transactions specifically from the wallet I uploaded to a specified recipient (outside Mt. Gox)


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: BurtW on October 07, 2011, 04:54:54 AM
Here is what I have tried so far:

I entered the mini private key S4b3N3oGqDqR5jNuxEvDwf and got the response "Private address added to your virtual wallet with address 1GAehh7TsJAHuUAeKZcXf5CnwuGuGgyX2S. There was no coins in there, maybe you did a typo?"  This is the correct public key address and there are no coins at this address.  So far so good.

I entered the hex private key for the same key 0c28fca386c7a227600b2fe50b7cae11ec86d3bf1fbe471be89827e19d72aa1d and got the response "Your private address could not be redeemed (already redeemed?)".  I guess this is the expected response and it proves that they calculated the same account for this version of the private key.

However, when I enter the WIF 5HueCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTJ for the same private key it calculated the wrong public key address.  So there appears to be a problem/bug when using the WIF.

I reported this bug to Mt. Gox.

I then used both a real mini private key and a real hex private key to attempt to import Bitcoins from active accounts (opened physical coins).  In both cases it calculated the correct public key address and found that there were Bitcoins in the accounts and promised to import them into Mt. Gox.

The Bitcoins were eventually moved off the accounts for the private keys I entered into Mt. Gox and placed on new accounts withing Mt. Gox.  This proves that they sweep the value off the imported private keys so there is no way to reuse the private key to send Bitcoins out of Mt. Gox.

See http://blockexplorer.com/address/13MsUf2Nnowoj8gdZBfBSyBJzVcC1R7hZA

And http://blockexplorer.com/address/13MT4QvExmajXAYqKQeMXAh9saVTVP6f6a

Both (one from a mini key and one from the hex key) showed up in my Mt. Gox account:  The notation looked like this:
Quote
Fri 07 Oct 2011 02:30:00 PM GMT   Deposit   18kvvRuTdb5SpwcGtmvaBJMCCrb7hHcbXu 13MsUf2N mini   1.00000000 BTC
Fri 07 Oct 2011 02:29:01 PM GMT   Deposit   1Mcdeft9J9raPEgdMHTw97UUoS9c8xyoqN 13MT4QvE hex   1.00000000 BTC

This shows both the notes I put in when I imported the key (first bits of the original public address and the private key type used) and the new public address the Bitcoins were swept into.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: BitcoinMint.US on October 07, 2011, 05:07:15 PM
Wow.  This is huge for Casascius.  Congratulations!


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: BurtW on October 07, 2011, 05:37:53 PM
"Auto sweep" also works.  I added 2 more Bitcoins to one of the addresses I imported via private key.  The amount was then automatically swept from the imported private key account and transferred to yet another new account inside Mt. Gox.

See http://blockexplorer.com/address/13MsUf2Nnowoj8gdZBfBSyBJzVcC1R7hZA

After sending 4 opened coins (2 using mini key and 2 using hex key) and then sending two more Bitcoins by sending them to one of the opened coin accounts using the "auto sweep".  My Mt. Gox account shows:

Code:
Fri 07 Oct 2011 05:22:01 PM GMT Deposit 1FjinLcrBmnUKMf6D3TaEiu7zghAacYEpK 13MsUf2N sweep 2.00000000 BTC 6.00000000 BTC
Fri 07 Oct 2011 04:58:00 PM GMT Deposit 1Fs1Z3CSqA5G5kKDudbKa5E7y7TXZzPrJA 13R8HFrC hex   1.00000000 BTC 4.00000000 BTC
Fri 07 Oct 2011 04:41:03 PM GMT Deposit 1PFNfJh7xAQ6ecPB9VaZYuhS4wvqAEQXsn 12hZaDWW mini  1.00000000 BTC 3.00000000 BTC
Fri 07 Oct 2011 02:30:00 PM GMT Deposit 18kvvRuTdb5SpwcGtmvaBJMCCrb7hHcbXu 13MsUf2N mini  1.00000000 BTC 2.00000000 BTC
Fri 07 Oct 2011 02:29:01 PM GMT Deposit 1Mcdeft9J9raPEgdMHTw97UUoS9c8xyoqN 13MT4QvE hex   1.00000000 BTC 1.00000000 BTC

Very nice new feature!


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: evoorhees on October 07, 2011, 07:00:12 PM
Hmm this is frustrating, I don't know how to take a "sipa format" key and turn it into "standard key"

Can anyone help me?  I can just give you my private key with 1btc on it and you can send me a btc if that's easiest. My coin is stuck in purgatory :(

Please pm if you can help


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: pc on October 07, 2011, 08:47:22 PM
Hmm this is frustrating, I don't know how to take a "sipa format" key and turn it into "standard key"

Can anyone help me?  I can just give you my private key with 1btc on it and you can send me a btc if that's easiest. My coin is stuck in purgatory :(

Please pm if you can help

If you don't mind telling your private key to Block Explorer, you can use their API:

Example:
Address: 13mWJ7RtAoMTB6nYTWouHSc8KLfpUWZskY
Privkey: 5JSnvLmCsFDye4QMbYE1fsyGAPbpr1XjyBuGJpqVfdvuz2kmuo6

Go to https://blockexplorer.com/q/addresstohash/5JSnvLmCsFDye4QMbYE1fsyGAPbpr1XjyBuGJpqVfdvuz2kmuo6
and the hex that it spits back is 52E417A1818758EBC3E1C595BF0DCA0C9F29A0E1087D5B01456F43819CFBD401

And if I go to Mt. Gox and try to redeem it, it says "Private address added to your virtual wallet with address 13mWJ7RtAoMTB6nYTWouHSc8KLfpUWZskY. There was no coins in there, maybe you did a typo?"

I'm sure that there are ways of doing it with openssl or python or whatnot locally, but as long as you trust the Block Explorer site to not do anything nefarious with your private key before you have a chance to redeem it, it ought to work for you until Mt. Gox supports the import format directly.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: casascius on October 07, 2011, 08:53:51 PM
Hmm this is frustrating, I don't know how to take a "sipa format" key and turn it into "standard key"

Can anyone help me?  I can just give you my private key with 1btc on it and you can send me a btc if that's easiest. My coin is stuck in purgatory :(

Please pm if you can help

MtGox intends to support this format but may have a bug in its implementation.  I was discussing how this format worked with MagicalTux about 16 hours ago and he indicated his initial understanding of the format was incorrect. So this presumably should be supported at some point soon once it is all fixed.

The "sipa format" is the most commonly used private key format in Bitcoin so it will undoubtedly be supported.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: evoorhees on October 07, 2011, 09:01:02 PM
Hmm this is frustrating, I don't know how to take a "sipa format" key and turn it into "standard key"

Can anyone help me?  I can just give you my private key with 1btc on it and you can send me a btc if that's easiest. My coin is stuck in purgatory :(

Please pm if you can help

If you don't mind telling your private key to Block Explorer, you can use their API:

Example:
Address: 13mWJ7RtAoMTB6nYTWouHSc8KLfpUWZskY
Privkey: 5JSnvLmCsFDye4QMbYE1fsyGAPbpr1XjyBuGJpqVfdvuz2kmuo6

Go to https://blockexplorer.com/q/addresstohash/5JSnvLmCsFDye4QMbYE1fsyGAPbpr1XjyBuGJpqVfdvuz2kmuo6
and the hex that it spits back is 52E417A1818758EBC3E1C595BF0DCA0C9F29A0E1087D5B01456F43819CFBD401

And if I go to Mt. Gox and try to redeem it, it says "Private address added to your virtual wallet with address 13mWJ7RtAoMTB6nYTWouHSc8KLfpUWZskY. There was no coins in there, maybe you did a typo?"

I'm sure that there are ways of doing it with openssl or python or whatnot locally, but as long as you trust the Block Explorer site to not do anything nefarious with your private key before you have a chance to redeem it, it ought to work for you until Mt. Gox supports the import format directly.


Boom that worked!!! Thanks bud!


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: pointbiz on October 07, 2011, 09:47:53 PM
This is all just very awesome. Thanks again to Casascius and MagicalTux.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: TTBit on October 10, 2011, 12:21:27 PM
Hmm this is frustrating, I don't know how to take a "sipa format" key and turn it into "standard key"

Can anyone help me?  I can just give you my private key with 1btc on it and you can send me a btc if that's easiest. My coin is stuck in purgatory :(

Please pm if you can help

If you don't mind telling your private key to Block Explorer, you can use their API:

Example:
Address: 13mWJ7RtAoMTB6nYTWouHSc8KLfpUWZskY
Privkey: 5JSnvLmCsFDye4QMbYE1fsyGAPbpr1XjyBuGJpqVfdvuz2kmuo6

Go to https://blockexplorer.com/q/addresstohash/5JSnvLmCsFDye4QMbYE1fsyGAPbpr1XjyBuGJpqVfdvuz2kmuo6
and the hex that it spits back is 52E417A1818758EBC3E1C595BF0DCA0C9F29A0E1087D5B01456F43819CFBD401

And if I go to Mt. Gox and try to redeem it, it says "Private address added to your virtual wallet with address 13mWJ7RtAoMTB6nYTWouHSc8KLfpUWZskY. There was no coins in there, maybe you did a typo?"

I'm sure that there are ways of doing it with openssl or python or whatnot locally, but as long as you trust the Block Explorer site to not do anything nefarious with your private key before you have a chance to redeem it, it ought to work for you until Mt. Gox supports the import format directly.


Boom that worked!!! Thanks bud!

pywallet.py --info --importprivkey 5JSnvLmCsFDye4QMbYE1fsyGAPbpr1XjyBuGJpqVfdvuz2kmuo6

will return:
Address (Bitcoin): 13mWJ7RtAoMTB6nYTWouHSc8KLfpUWZskY
Privkey (Bitcoin): 5JSnvLmCsFDye4QMbYE1fsyGAPbpr1XjyBuGJpqVfdvuz2kmuo6
Hexprivkey: 52e417a1818758ebc3e1c595bf0dca0c9f29a0e1087d5b01456f43819cfbd401



Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: BkkCoins on October 10, 2011, 01:07:51 PM
pywallet.py --info --importprivkey 5JSnvLmCsFDye4QMbYE1fsyGAPbpr1XjyBuGJpqVfdvuz2kmuo6

will return:
Address (Bitcoin): 13mWJ7RtAoMTB6nYTWouHSc8KLfpUWZskY
Privkey (Bitcoin): 5JSnvLmCsFDye4QMbYE1fsyGAPbpr1XjyBuGJpqVfdvuz2kmuo6
Hexprivkey: 52e417a1818758ebc3e1c595bf0dca0c9f29a0e1087d5b01456f43819cfbd401
Cool. I take it the --info ensures it won't actually import the key. I tested it with no wallet present and it still works the same so that's handy.


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: pointbiz on October 12, 2011, 11:03:44 PM
I have confirmed that MtGox now accepts private keys in "sipa format".


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: Jonathan Ryan Owens on November 16, 2011, 05:27:13 AM
I just got shown bwagner's private key from this post as my Bitcoin receiving address at MtGox. From what seems to be a php var_dump showing me debug.

This is a major WTF.

1GAehh7TsJAHuUAeKZcXf5CnwuGuGgyX2S

imgur proof: https://i.imgur.com/GAmhb.png


Title: Re: MtGox adds redeemer for private keys including Casascius Physical Bitcoins
Post by: BurtW on November 16, 2011, 05:56:34 AM
Interesting.  That particular address and public key pair is just the test pair from the wiki here:  https://en.bitcoin.it/wiki/Mini_private_key_format

Code:
Public address:    1GAehh7TsJAHuUAeKZcXf5CnwuGuGgyX2S
Mini private key:  S4b3N3oGqDqR5jNuxEvDwf
Full private key:  0C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D
Full private key:  5HueCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTJ

So, it is not any of my personal addresses or public keys (whew).  But it interesting that it showed up.  My guess is that Mt. Gox may be using that test pair for testing and somehow their testing went astray?