Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change CAN name rules #8

Merged
merged 4 commits into from
Mar 2, 2020
Merged

Conversation

quocle108
Copy link

Change Description

  • A account length can be between 6 and 12 (both inclusive).
  • Available characters are a to z and 1 to 5.
  • Users whose account length is between 6 and 12 can't create other accounts ending with dot and their username.
  • The premium name market is closed at the time of launching the mainnet.
  • The premium name market to be opened later will allow to bid username less than 6 and to use it to create other accounts ending with dot and the username.

Deployment Changes

  • Deployment Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@quocle108 quocle108 requested a review from danielvo11 February 28, 2020 04:58
@quocle108
Copy link
Author

quocle108 commented Feb 28, 2020

@danielalvess FYI:

Account Name Design

  • 12 characters max
  • May contain: a-z, 1-5, or .
  • May not end with .

Names are encoded in base-32:

  • . = 0
  • 1-5 = 1 - 5
  • a-z = 6 - 31
    The 5 MSBs of the uint64 contain the first character. Unused characters are replaced with . (0).

Converting Strings

An account name can be converted to or from strings as follows:
"dan" <=> "dan........."
"dan.larimer" <=> "dan.larimer."

Refer:

EOSIO/eos#56
https://developers.eos.io/welcome/latest/protocol/accounts_and_permissions

@danielvo11
Copy link

I'm reviewing!.

@quocle108 quocle108 merged commit bb2c1d6 into develop Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants