Bitcoin Forum
March 19, 2024, 04:29:05 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 [108] 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 ... 173 »
  Print  
Author Topic: Blockchain.info - Bitcoin Block explorer & Currency Statistics  (Read 482324 times)
arsenische
Legendary
*
Offline Offline

Activity: 1199
Merit: 1012


View Profile
March 22, 2013, 04:05:10 PM
 #2141

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,
Quote
$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
Quote
{"error":"Invalid PK Bytes Length"}

How do I get a hex encoded private key?

Thanks!

1710822545
Hero Member
*
Offline Offline

Posts: 1710822545

View Profile Personal Message (Offline)

Ignore
1710822545
Reply with quote  #2

1710822545
Report to moderator
1710822545
Hero Member
*
Offline Offline

Posts: 1710822545

View Profile Personal Message (Offline)

Ignore
1710822545
Reply with quote  #2

1710822545
Report to moderator
"Your bitcoin is secured in a way that is physically impossible for others to access, no matter for what reason, no matter how good the excuse, no matter a majority of miners, no matter what." -- Greg Maxwell
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1710822545
Hero Member
*
Offline Offline

Posts: 1710822545

View Profile Personal Message (Offline)

Ignore
1710822545
Reply with quote  #2

1710822545
Report to moderator
arsenische
Legendary
*
Offline Offline

Activity: 1199
Merit: 1012


View Profile
March 22, 2013, 11:33:08 PM
 #2142

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)
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1005



View Profile WWW
March 23, 2013, 03:46:40 AM
Last edit: March 23, 2013, 10:20:52 AM by piuk
 #2143

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 Offline

Activity: 1199
Merit: 1012


View Profile
March 23, 2013, 09:43:12 AM
 #2144

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
Hero Member
*****
Offline Offline

Activity: 756
Merit: 504



View Profile
March 23, 2013, 05:38:19 PM
 #2145

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
Hero Member
*****
Offline Offline

Activity: 756
Merit: 504



View Profile
March 24, 2013, 01:51:22 PM
 #2146

bump
willphase
Hero Member
*****
Offline Offline

Activity: 767
Merit: 500


View Profile
March 24, 2013, 10:26:40 PM
 #2147

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 Offline

Activity: 1358
Merit: 1000


AKA: gigavps


View Profile
March 25, 2013, 02:39:34 PM
 #2148

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)
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1005



View Profile WWW
March 25, 2013, 04:22:25 PM
 #2149

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 Offline

Activity: 1358
Merit: 1000


AKA: gigavps


View Profile
March 25, 2013, 04:48:51 PM
 #2150

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
Hero Member
*****
Offline Offline

Activity: 544
Merit: 500



View Profile
March 25, 2013, 09:42:00 PM
 #2151



Any plans to add a safari Browser extension? The firefox and Chrome versions look great !
ingrownpocket
Legendary
*
Offline Offline

Activity: 952
Merit: 1000


View Profile
March 26, 2013, 07:49:50 PM
 #2152

Why don't you answer my ticket on zendesk?

I have added a tool to help you debug this issue. The server will now log the response of every callback and you can view the logs by entering the callback url on https://blockchain.info/api/api_receive or https://blockchain.info/api/blockchain_wallet_api.

https://i.imgur.com/P2rNqUJ.png
Thank you Thank you Thank you Thank you Thank you   Grin

Where can I tip you?
Can you please order the result by date?

Thanks.
JonSnow
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
March 28, 2013, 11:16:01 PM
 #2153

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 Offline

Activity: 112
Merit: 10


View Profile
March 29, 2013, 05:27:37 AM
 #2154

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 Offline

Activity: 1358
Merit: 1003


Ron Gross


View Profile WWW
March 29, 2013, 10:44:50 AM
 #2155

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.

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
piuk (OP)
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1005



View Profile WWW
March 29, 2013, 01:20:40 PM
 #2156

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
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250


View Profile
March 29, 2013, 01:39:45 PM
 #2157

hope so but I suspect they will be backed up - I would have generated 5 confirmation code emails alone.
ripper234
Legendary
*
Offline Offline

Activity: 1358
Merit: 1003


Ron Gross


View Profile WWW
March 29, 2013, 02:10:22 PM
 #2158

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!

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
hazek
Legendary
*
Offline Offline

Activity: 1078
Merit: 1002


View Profile
March 29, 2013, 06:57:23 PM
 #2159

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 Offline

Activity: 1358
Merit: 1003


Ron Gross


View Profile WWW
March 30, 2013, 10:52:21 AM
 #2160

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"

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
Pages: « 1 ... 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 [108] 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 ... 173 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!