arsenische
Legendary
Offline
Activity: 1199
Merit: 1012
|
|
March 22, 2013, 04:05:10 PM |
|
Ok.. So new_key returns bitcoin address and exponent for private key (not a private key itself)? When I put it in brainwallet, it gives the right bitcoin address... So it means that theoretically I control my test money. Thanks for help! But now there is a question, how to spend them practically via blockchain API? I want to use this call: https://blockchain.info/merchant/$guid/payment?to=$address&amount=$amount According to brainwallet doc, $guid can be replaced with a hex encoded private key and the password parameters can be omitted.
I tried to convert private key from DER to HEX format via brainwallet's "converter", but when I feed the result string to blockchain, I get {"error":"Invalid PK Bytes Length"} How do I get a hex encoded private key? Thanks!
|
|
|
|
arsenische
Legendary
Offline
Activity: 1199
Merit: 1012
|
|
March 22, 2013, 11:33:08 PM |
|
What I do: 1. Go to https://blockchain.info/q/newkey , it shows 2 words, such as: 1jDY146mpM6BKYsxGVRz9ckVGYuSEDv2o f5b4522d9a49d7ba38450058f8e390454dd1d6f513a0e299a55e2f46e51f8021 So $address1 = 1jDY146mpM6BKYsxGVRz9ckVGYuSEDv2o $privHex = f5b4522d9a49d7ba38450058f8e390454dd1d6f513a0e299a55e2f46e51f8021 2. Send $amount+0.0005 bitcoins to $address1 3. Call https://blockchain.info/merchant/$privHex/payment?to=$someOtherAddress&amount=$amount , it will give me the error: {"error":"No free outputs to spend"} 4. Go to http://brainwallet.org/#converter , paste there $privHex, convert it to $privBase58 5. Go to http://brainwallet.org/#sign , paste there $privBase58, notice bitcoin address $address2 6. Send $amount+0.0005 bitcoins to $address2 7. Call exactly the same query as in 3: https://blockchain.info/merchant/$privHex/payment?to=$someOtherAddress&amount=$amount It works, money sent from $address2! If I go to http://brainwallet.org/#generator and put there $privHex as exponent and click "Compressed", I will see $address1 there and Private Key (DER). But I have no idea how to convert that private key to hex format required by blockchain.info to be able to spend test money that has been sent to $address1. Please help. How can it be explained and how is it supposed to work?
|
|
|
|
piuk (OP)
|
|
March 23, 2013, 03:46:40 AM Last edit: March 23, 2013, 10:20:52 AM by piuk |
|
Piuk - do you run bitcoind or your own implementation of the protocol?
Bitcoind, just with some modified networking code. Please help. How can it be explained and how is it supposed to work?
The private key returned by /new is Hex encoded and the compressed address is shown. The merchant API should be compatible with no conversion however using the call where you pass in a single private key only the uncompressed address is checked. Now both the compressed and uncompressed balances will be check and it should work fine.
|
|
|
|
arsenische
Legendary
Offline
Activity: 1199
Merit: 1012
|
|
March 23, 2013, 09:43:12 AM |
|
Please help. How can it be explained and how is it supposed to work?
The private key returned by /new is Hex encoded and the compressed address is shown. The merchant API should be compatible with no conversion however using the call where you pass in the loan private key only the uncompressed address would be check. Now both the compressed and uncompressed balances will be check and it should work fine. Thank you so much, it works!
|
|
|
|
rme
|
|
March 23, 2013, 05:38:19 PM |
|
Firstbits in Blockchain.info is not working (for new ones)(sorry for the size and color, just to call attention). For example, this url https://blockchain.info/address/1R2sWe is the firsbits of 1R2sWeVhFitB8zVbkrmdSoXzaQRsw6cfh and it is not woking. Also firstbits.com is down.
|
|
|
|
rme
|
|
March 24, 2013, 01:51:22 PM |
|
bump
|
|
|
|
willphase
|
|
March 24, 2013, 10:26:40 PM |
|
bump
why are you bumping a question that's already been answered: blockchain.info isn't calculating firstbits for new addresses. Could you fix it please?
Ah for some reason I disabled this. It is enabled again now but has a bit of catching up to do. Will
|
|
|
|
jamesg
VIP
Legendary
Offline
Activity: 1358
Merit: 1000
AKA: gigavps
|
|
March 25, 2013, 02:39:34 PM |
|
Piuk,
It seems some recent changes to the SSL cert (within the last week) have caused Java clients trying to connect to the API to not be able to validate your SSL cert. Did you move to SNI SSL cert or do something else?
Thanks, James
|
|
|
|
piuk (OP)
|
|
March 25, 2013, 04:22:25 PM |
|
Piuk,
It seems some recent changes to the SSL cert (within the last week) have caused Java clients trying to connect to the API to not be able to validate your SSL cert. Did you move to SNI SSL cert or do something else?
Thanks, James
I made a few SSL changes last night I think may be the full certificate chain was incomplete. Please try again now.
|
|
|
|
jamesg
VIP
Legendary
Offline
Activity: 1358
Merit: 1000
AKA: gigavps
|
|
March 25, 2013, 04:48:51 PM |
|
I made a few SSL changes last night I think may be the full certificate chain was incomplete. Please try again now.
I have retried a small payment through the API and everything is working normally again. Thanks for the quick fix. Best, James
|
|
|
|
lunarboy
|
|
March 25, 2013, 09:42:00 PM |
|
Any plans to add a safari Browser extension? The firefox and Chrome versions look great !
|
|
|
|
ingrownpocket
Legendary
Offline
Activity: 952
Merit: 1000
|
|
March 26, 2013, 07:49:50 PM |
|
Thank you Thank you Thank you Thank you Thank you Where can I tip you? Can you please order the result by date? Thanks.
|
|
|
|
JonSnow
Member
Offline
Activity: 112
Merit: 10
|
|
March 28, 2013, 11:16:01 PM |
|
Anyone else having problems receiving the SMS code? I can't login because the code isn't being sent, and this sucks since I sell bitcoins ...
|
|
|
|
JonSnow
Member
Offline
Activity: 112
Merit: 10
|
|
March 29, 2013, 05:27:37 AM |
|
Update: it's been over 5 hours and no response - still locked out of my wallet due to not receiving the SMS codes, and now it's stuck on "changing wallet identifier" ... am I the only one having issues?
|
|
|
|
ripper234
Legendary
Offline
Activity: 1358
Merit: 1003
Ron Gross
|
|
March 29, 2013, 10:44:50 AM |
|
Update: it's been over 5 hours and no response - still locked out of my wallet due to not receiving the SMS codes, and now it's stuck on "changing wallet identifier" ... am I the only one having issues?
I am not receiving my email verification code and am locked out.
|
|
|
|
piuk (OP)
|
|
March 29, 2013, 01:20:40 PM |
|
Any plans to add a safari Browser extension? The firefox and Chrome versions look great !
Sure, if apple accepts it into the extension gallery. Can you please order the result by date?
Done. I am not receiving my email verification code and am locked out.
Email and SMS codes should be coming through again now.
|
|
|
|
MikeH
|
|
March 29, 2013, 01:39:45 PM |
|
hope so but I suspect they will be backed up - I would have generated 5 confirmation code emails alone.
|
|
|
|
ripper234
Legendary
Offline
Activity: 1358
Merit: 1003
Ron Gross
|
|
March 29, 2013, 02:10:22 PM |
|
Any plans to add a safari Browser extension? The firefox and Chrome versions look great !
Sure, if apple accepts it into the extension gallery. Can you please order the result by date?
Done. I am not receiving my email verification code and am locked out.
Email and SMS codes should be coming through again now. Thanks for the quick response, it works!
|
|
|
|
hazek
Legendary
Offline
Activity: 1078
Merit: 1003
|
|
March 29, 2013, 06:57:23 PM |
|
piuk an chance on that graph we talked about a while back that draws what this one does: http://statistics.ecdsa.org/
|
My personality type: INTJ - please forgive my weaknesses (Not naturally in tune with others feelings; may be insensitive at times, tend to respond to conflict with logic and reason, tend to believe I'm always right)
If however you enjoyed my post: 15j781DjuJeVsZgYbDVt2NZsGrWKRWFHpp
|
|
|
ripper234
Legendary
Offline
Activity: 1358
Merit: 1003
Ron Gross
|
|
March 30, 2013, 10:52:21 AM |
|
I can't seem to pair my Yubikey with My Wallet.
I press the button, get a standard Yubikey code, and then get "Authentication code is incorrect"
|
|
|
|
|