Bitcoin Forum
May 10, 2024, 06:58:56 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: UX for bitcoin address field  (Read 1349 times)
Stephen Gornick (OP)
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
April 25, 2011, 10:11:47 PM
 #1

The user experience for pasting to the bitcoin address input field in a web form varies widely across Bitcoin's growing presence on exchanges, merchant sites,  blogs, etc.

Is it appropriate to massage the value that was input?  e.g., to strip out leading blank space character, or a trailing linefeed, etc?

Or are there any other tips regarding the UX for this field?

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


1715324336
Hero Member
*
Offline Offline

Posts: 1715324336

View Profile Personal Message (Offline)

Ignore
1715324336
Reply with quote  #2

1715324336
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715324336
Hero Member
*
Offline Offline

Posts: 1715324336

View Profile Personal Message (Offline)

Ignore
1715324336
Reply with quote  #2

1715324336
Report to moderator
1715324336
Hero Member
*
Offline Offline

Posts: 1715324336

View Profile Personal Message (Offline)

Ignore
1715324336
Reply with quote  #2

1715324336
Report to moderator
1715324336
Hero Member
*
Offline Offline

Posts: 1715324336

View Profile Personal Message (Offline)

Ignore
1715324336
Reply with quote  #2

1715324336
Report to moderator
Stephen Gornick (OP)
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
April 25, 2011, 11:07:03 PM
 #2

Here's a specific example of why I ask this:
  MtGox withdrawal issues
  http://bitcointalk.org/index.php?topic=6511.msg95327#msg95327

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12982


View Profile
April 26, 2011, 02:44:21 AM
 #3

Trimming invalid characters is a good idea. The chance that you make a valid address from nothing is nearly 0 -- if you get a valid address, the user pasted one.

I've seen many sites assume that Bitcoin addresses must be 33 or 34 characters long, but they can actually be 25-43 characters in length.

All sites should verify address checksums. I don't like the idea of asking Bitcoin over RPC for every address, though: there's code for checking yourself in several languages.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
ByteCoin
Sr. Member
****
expert
Offline Offline

Activity: 416
Merit: 277


View Profile
April 26, 2011, 11:25:33 PM
 #4

I've seen many sites assume that Bitcoin addresses must be 33 or 34 characters long, but they can actually be 25-43 characters in length.

Please provide either examples or at least a plausible argument for the existence of valid addresses shorter than 27 characters or longer than 34 characters. I've corrected you on this before http://bitcointalk.org/index.php?topic=1019.msg12683#msg12683

ByteCoin
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12982


View Profile
April 27, 2011, 12:50:11 AM
 #5

lease provide either examples or at least a plausible argument for the existence of valid addresses shorter than 27 characters or longer than 34 characters. I've corrected you on this before http://bitcointalk.org/index.php?topic=1019.msg12683#msg12683

26 characters:
11111111111111111111BZbvjr

I did wrongly remember the upper limit, though. It is 34 characters. I must have flipped the digits in my head.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Garrett Burgwardt
Sr. Member
****
Offline Offline

Activity: 406
Merit: 256


View Profile
April 27, 2011, 01:45:56 AM
 #6

Another thing - slightly offtopic: The remnants from IP transfers confuse a lot of people, they need to be removed ASAP.
Pages: [1]
  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!