Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: myself on May 16, 2012, 11:50:13 AM



Title: del
Post by: myself on May 16, 2012, 11:50:13 AM
del


Title: Re: blockchain.info generated address are invalid
Post by: Otoh on May 16, 2012, 11:57:00 AM
myself & someone else just tried to send me a coin to that address & it flagged up red as invalid, it's one from my blockchain.info wallet, but when I just tried now from Gox the tx worked fine - anyone know whats going on here, thanks

https://blockchain.info/tx-index/5898969/41ddf20f523c8b23d1519bd583c76813037a0ac46116f84360042f12add66f91


Title: Re: blockchain.info generated address are invalid
Post by: SkRRJyTC on May 16, 2012, 11:59:40 AM
This is one of the addresses I am unable to send to.  I initially thought the problem was on my end but now I dont know...

https://bitcointalk.org/index.php?topic=81917.0


Title: Re: blockchain.info generated address are invalid
Post by: piuk on May 16, 2012, 12:15:32 PM
1G5apmPvo2iTtmkNWAHTCET7​Y842Ufijs8

When I copy and paste the address from you post it has a space (or other invalid character in it)

1G5apmPvo2iTtmkNWAHTCET7 Y842Ufijs8

1G5apmPvo2iTtmkNWAHTCET7Y842Ufijs8 is valid.


Title: Re: blockchain.info generated address are invalid
Post by: Otoh on May 16, 2012, 12:20:00 PM
1G5apmPvo2iTtmkNWAHTCET7​Y842Ufijs8

When I copy and paste the address from you post it has a space (or other invalid character in it)

1G5apmPvo2iTtmkNWAHTCET7 Y842Ufijs8

1G5apmPvo2iTtmkNWAHTCET7Y842Ufijs8 is valid.

I just tried that C&P from myself's post & it worked fine from Gox - I see no space or anything like in your example


Title: Re: blockchain.info generated address are invalid
Post by: piuk on May 16, 2012, 12:28:30 PM
I just tried that C&P from myself's post & it worked fine from Gox - I see no space or anything like in your example

Maybe Gox is striping the character.

If I double click to select the address in myself's post only part of the address is selected e.g.

https://i.imgur.com/HJttL.png

But If I double click the address in your sig the whole address is selected. Somewhere along the lines an invalid character got inserted.


Title: Re: blockchain.info generated address are invalid
Post by: SkRRJyTC on May 16, 2012, 12:32:45 PM
I just tried that C&P from myself's post & it worked fine from Gox - I see no space or anything like in your example

Maybe Gox is striping the character.

If I double click to select the address in myself's post only part of the address is selected e.g.

https://i.imgur.com/HJttL.png

But If I double click the address in your sig the whole address is selected. Somewhere along the lines an invalid character got inserted.

This solved the issue for me.  I was able to send coins using the address you removed the illegal char from.  Thanks!


Title: Re: blockchain.info generated address are invalid
Post by: Otoh on May 16, 2012, 12:35:12 PM
I just tried that C&P from myself's post & it worked fine from Gox - I see no space or anything like in your example

Maybe Gox is striping the character.

If I double click to select the address in myself's post only part of the address is selected e.g.

https://i.imgur.com/HJttL.png

But If I double click the address in your sig the whole address is selected. Somewhere along the lines an invalid character got inserted.

weird, when I double click it it all gets selected & works fine


Title: Re: blockchain.info generated address are invalid
Post by: Otoh on May 16, 2012, 06:49:01 PM
I'm using a Mac with Firefox & have no problems like this at all, if that helps finding what's going on here


Title: Re: blockchain.info generated address are invalid
Post by: casascius on May 16, 2012, 06:55:22 PM
I have seen this happen if you post an address on Facebook.  Facebook inserts a non-printing character in words above a certain length so browsers break them rather than widen columns.  That non-printing character can be copied and pasted and will make a perfectly normal-looking address get rejected.

The most sensible remedy is for input dialogs expecting a Bitcoin address to strip these out.

Short of that, just retype the address by hand without copy and paste.


Title: Re: blockchain.info generated address are invalid
Post by: yodog on May 16, 2012, 07:02:59 PM
I just tried that C&P from myself's post & it worked fine from Gox - I see no space or anything like in your example

Maybe Gox is striping the character.

If I double click to select the address in myself's post only part of the address is selected e.g.

https://i.imgur.com/HJttL.png

But If I double click the address in your sig the whole address is selected. Somewhere along the lines an invalid character got inserted.

weird, when I double click it it all gets selected & works fine

Are you on a pc? I am on a mac, and when I double click same thing happens, stops where shown above. but when I do it again entire string gets highlighted. 


Title: Re: blockchain.info generated address are invalid
Post by: sgravina on May 16, 2012, 07:18:32 PM

1G5apmPvo2iTtmkNWAHTCET7​Y842Ufijs8


If you look at the html source (use 'view'->'source' in Explorer) of your post you will see:

1G5apmPvo2iTtmkNWAHTCET7​Y842Ufijs8

Where you pasted your address.  The '​' is not a printable ASCII character.  Your browser chose to show nothing in that place.  But if you copy that string those invalid characters are there.

Sam


Title: Re: blockchain.info generated address are invalid
Post by: DeathAndTaxes on May 16, 2012, 07:34:05 PM
The most sensible remedy is for input dialogs expecting a Bitcoin address to strip these out.

Input validation for the win.  No seriously a good idea.  One I will tuck away (and likely forget until something stops working. :) ).


Title: Re: blockchain.info generated address are invalid
Post by: Stephen Gornick on May 16, 2012, 08:32:30 PM
1G5apmPvo2iTtmkNWAHTCET7​Y842Ufijs8

Where you pasted your address.  The '​' is not a printable ASCII character. 


Zero-width space.  Like Casascius says, probably injected so it will help when a line break / wrap is needed.
 - http://stackoverflow.com/questions/2973698/whats-html-character-code-8203


Title: Re: blockchain.info generated address are invalid
Post by: Stephen Gornick on May 16, 2012, 08:34:14 PM
Using Vv0.6.2 of the client it wouldn't even let me paste that address in the PayTo:


Title: Re: blockchain.info generated address are invalid
Post by: Stephen Gornick on May 16, 2012, 08:40:37 PM
I've opened an issue for this:
 - https://github.com/bitcoin/bitcoin/issues/1325


Title: Re: blockchain.info generated address are invalid
Post by: P4man on May 16, 2012, 08:49:30 PM
short term workaround; copy paste the address to notepad and from notepad to wherever you want. That will also remove nonprintable characters. I use it often to copy paste HTML tables to OO Calc and get rid of the HTML markup.