EOSIO / eosjs

General purpose library for the EOSIO blockchain.
http://eosio.github.io/eosjs
MIT License
1.43k stars 462 forks source link

Restrictions when creating an account #3

Closed AndriiKr closed 6 years ago

AndriiKr commented 6 years ago

I want to use emails or numeric id as usernames but there are restrictions while account creating like this: 'A name can be up to 13 characters long' or 'Invalid character' except '.12345abcdefghijklmnopqrstuvwxyz'. Any way to bypass that?

jcalfee commented 6 years ago

No, that is a restriction on the blockchain. It greatly improved the performance when it was added so it is best to work with it..

dskvr commented 6 years ago

@AndriiKr Usernames are Base32, those restrictions cannot be bypassed.

jcalfee commented 6 years ago

Close to Base32 .. only goes up to the number 5 .. the 13th character is restricted too, it can't go further than j (so don't use k-z)..

https://github.com/EOSIO/eosjs/blob/master/src/format.test.js#L12-L13