An account is a collection of authorizations, stored on the blockchain, and used to identify a sender/recipient. It has a flexible authorization structure that enables it to be owned either by an individual or group of individuals depending on how permissions have been configured. An account is required to send or receive a valid transaction to the blockchain.
Step 1: Create Accounts
In section 1.4 Create Development Wallet, you created a development key pair. Now, create new account in VEXANIUM blockchain.
NOTE
Follow the tutorials here for a simple way of creating account on VEXANIUM blockchain.
Throughout these tutorials the accounts [YOUR_VEX_ACCOUNT_1] and [YOUR_VEX_ACCOUNT_2] are used. Create accounts using below command.
INFO
Before you do action to the blockchain, there are two options by start nodeos or endpoint. If you want to push action without run nodeos, you can add --url configuration after cleos command like below.
Note in cleos command a public key is associated with account alice. Each VEX account is associated with a public key.
Be aware that the account name is the only identifier for ownership. You can change the public key but it would not change the ownership of your VEXANIUM account.
Check which public key is associated with belajarsc222 using cleos get account
Notice that actually belajarsc222 has both owner and active public keys. VEXANIUM has a unique authorization structure that has added security for your account. You can minimize the exposure of your account by keeping the owner key cold, while using the key associated with your active permission. This way, if your active key were ever compromised, you could regain control over your account with your owner key.
In term of authorization, if you have a owner permission you can change the private key of active permission. But you cannot do so other way around.
USING DIFFERENT KEYS FOR ACTIVE/OWNER ON A PRODUCTION NETWORK
In this tutorial we are using the same public key for both owner and active for simplicity. In production network, two different keys are strongly recommended
Troubleshooting
If you get an error while creating the account, make sure your wallet is unlocked
cleoswalletlist
You should see an asterisk (*) next to the wallet name, as seen below.
Wallets:["default *"]
What's Next?
Hello World: The Hello World of VEXANIUM! Learn how to set up your environment and deploy your first smart contract.