Bitcoin Forum
December 09, 2016, 06:09:07 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Bitcoin account format spec?  (Read 1164 times)
Alex Beckenham
Full Member
***
Offline Offline

Activity: 154


View Profile
March 30, 2011, 03:28:36 PM
 #1

Sorry I couldn't find this anywhere...

Are there any specific rules about how you can name an account? eg. Does it have to be alphanumeric, can it contain spaces, etc... how long can it be?

This API Calls List doesn't mention anything about it:

https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list

Also the 'Full list' on that page doesn't include the listaccounts() function... is that function new or is this just an oversight?


1481263747
Hero Member
*
Offline Offline

Posts: 1481263747

View Profile Personal Message (Offline)

Ignore
1481263747
Reply with quote  #2

1481263747
Report to moderator
1481263747
Hero Member
*
Offline Offline

Posts: 1481263747

View Profile Personal Message (Offline)

Ignore
1481263747
Reply with quote  #2

1481263747
Report to moderator
1481263747
Hero Member
*
Offline Offline

Posts: 1481263747

View Profile Personal Message (Offline)

Ignore
1481263747
Reply with quote  #2

1481263747
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481263747
Hero Member
*
Offline Offline

Posts: 1481263747

View Profile Personal Message (Offline)

Ignore
1481263747
Reply with quote  #2

1481263747
Report to moderator
LMGTFY
Hero Member
*****
Offline Offline

Activity: 644



View Profile
March 30, 2011, 03:35:46 PM
 #2

Sorry I couldn't find this anywhere...

Are there any specific rules about how you can name an account? eg. Does it have to be alphanumeric, can it contain spaces, etc... how long can it be?

This API Calls List doesn't mention anything about it:

https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list

Also the 'Full list' on that page doesn't include the listaccounts() function... is that function new or is this just an oversight?


Probably the best way to find out would be to check the source code (search github for "listaccounts", and I'll do that once I get home, if you haven't beaten me to it!) However, in the meantime I can tell you that I've got account names with spaces, hyphens and periods as well as alphanumeric chars. None of my account names are that long - longest is 23 chars.

This space intentionally left blank.
theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2506


View Profile
March 30, 2011, 03:40:12 PM
 #3

I don't think there's any restriction except that "*" is reserved.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Alex Beckenham
Full Member
***
Offline Offline

Activity: 154


View Profile
March 30, 2011, 03:44:52 PM
 #4

Probably the best way to find out would be to check the source code (search github for "listaccounts", and I'll do that once I get home, if you haven't beaten me to it!) However, in the meantime I can tell you that I've got account names with spaces, hyphens and periods as well as alphanumeric chars. None of my account names are that long - longest is 23 chars.

Cheers. I haven't touched C++ for years so I'm not the best person to check, but I couldn't see anything that restricts it.

I did however find something else very interesting while I was there... the 'vanity' param Smiley

Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
March 30, 2011, 03:57:56 PM
 #5

I did however find something else very interesting while I was there... the 'vanity' param Smiley

That's not part of the official API, that's just a fun hack I made one day on a whim.

The technical information in the wiki needs more attention and polish; if you have time and are a decent writer, please jump in and help out.

How often do you get the chance to work on a potentially world-changing project?
Alex Beckenham
Full Member
***
Offline Offline

Activity: 154


View Profile
March 30, 2011, 04:18:55 PM
 #6

I did however find something else very interesting while I was there... the 'vanity' param Smiley
That's not part of the official API, that's just a fun hack I made one day on a whim.
The technical information in the wiki needs more attention and polish; if you have time and are a decent writer, please jump in and help out.

You're right about it being something 'fun'; After thinking about it for a bit I realised I probably won't use it. But it's cool none-the-less.

I would gladly help with docs, etc. as I usually have a keen eye for proof-reading, however being so new to Bitcoin I'm not confident enough yet to edit technical docs in case the anomaly is there for a reason!  Embarrassed

Hal
VIP
Sr. Member
*
expert
Offline Offline

Activity: 314



View Profile
March 30, 2011, 08:14:14 PM
 #7

Look at my sig, Bitcoin address with my name in it courtesy of Gavin's vanity patch.

Hal Finney
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!