Accounts and permissions

Automatic account creation

Inherited from EOSIO, FIO Chain has the notion of accounts. In order to make it easier for developers to be able to integrate with the FIO Blockchain, the FIO accounts are created automatically in the following instances:

There is no other way to create an account, but to send tokens to a public key or register address/domain to a public key.

Account names

FIO Chain uses a custom hash function, which when applied to a public key, produces an EOSIO-compliant default account name. There is no way to create a custom name for an an account.

Custom permissions

When an account is ceated automatically the corresponding public key is inserted as owner and active permission. FIO Chain uses the same permission model as EOSIO, except that:

  • Only one public key can be specified for any one account
  • “waits” are not supported
  • Custom permissions are not currently supported by the SDKs, so some wallets may not handle accounts with custom permissions.

It is important to note that the only way to send tokens is to use /transfer_tokens_pub_key which will always send the funds to the account which is a hash of the public key, even if that key is set as permission on other accounts.

linkauth

Example of how to use linkauth to allow specific account to register FIO Addresses on private domain.