Documentation
  • INTRODUCTION
  • USERS
    • White Paper
    • Main features of CyberWay
    • Bandwidth differences between EOS and CyberWay
    • Bandwidth implementation
    • How to Launch EOS dApps on CyberWay
    • Glossary
  • DEVELOPMENT ENVIRONMENT
    • Core Concepts
    • 1 Before You Begin
    • 2 Install the CDT
    • 3 Create Development Wallet
    • 4 Start keosd and nodeos
    • 5 Create Test Accounts
  • SOFTWARE MANUALS
    • Core
      • nodeos
      • cleos
      • keosd
      • cyberway.cdt
    • How To Guides
      • How To Ban An Unwanted Account
      • How To Calculate Reward For An Author
      • How To Calculate Reward For A Beneficiary
      • How To Calculate Reward For A Curator
      • How To Create A Wallet
      • How To Create An Account
      • How To Create A Proxy Account
      • How To Create Key Pair
      • How To Delegate Resources
      • How To Deploy A Node Using A Snapshot
      • How To Deploy A Smart Contract
      • How To Get Account Information
      • How To Get Block Information
      • How To Get Transaction Information
      • How To Import A Key
      • How To Link Permission
      • How To List All Key Pair
      • How To Stake Tokens
      • How To Stop A Node Using Docker
      • How To Submit A Proposal For HardFork
      • How To Transfer Tokens To A Worker
      • How To Undelegate Resources
      • How To Unlink Permission
      • How To Unstake Tokens
      • How To Vote
    • API Reference
      • Nodeos Chain API
      • Nodeos Producer API
      • Nodeos Net API
    • Cleos Command Reference
      • Convert
      • Create
      • Get
      • Multisig
      • Net
      • Push
      • Set
      • Sign
      • System
      • Transfer
      • Version
      • Wallet
    • Explorer Command Reference
      • How To Check Your Balance
      • How To Find Out Account ID
      • How To Convert Golos To Golos Power And Vice Versa
      • How To Stake Tokens CYBER
      • How To Transfer Funds From One Account To Another
      • How To Transfer Funds From Pending to Liquid
      • How To Bay Stake
      • How To Withdraw Stake
      • How To Vote For A Validator
      • How To Revoke Your Vote For A Validator
      • How To Bay Vesting Using Explorer
      • How To Vote For A Witness
      • How To Revoke Your Vote For A Witness
  • DEVPORTAL
    • System Contracts
      • BIOS
      • Domain names
      • Govern
      • Multi-Signature
      • Stake
      • Tokens
    • Application Contracts
      • Golos Contracts
        • Charge
        • Control
        • Emission
        • Publication
        • Referral program
        • Social
        • Vesting
        • Memo-keys
        • Determining Rewards for a Post
    • Guide to Creating and Deploying an Application on CyberWay
      • 1 Preliminary Work
      • 2 Creating a Simple Contract
      • 3 Creating Tokens
      • 4 Understanding ABI Files
      • 5 Data Persistence
      • 6 Secondary Indexes
      • 7 Adding Inline Actions
      • 8 Inline Action to External Contract
      • 9 Conclusion
    • The cyberway_wallet designed for the Bittrex market
    • The Event Model
  • VALIDATORS
    • Testnet Installation Guide
      • 1 General
      • 2 Configuring the Docker Image
      • 3 Create Container
      • 4 Connecting to a Node
      • 5 List of Commands Applicable to Any Kind of Container
    • Mainnet Connection Guide
      • Docker-Compose Start-up Instructions
      • APPENDIX A
      • APPENDIX B
    • Golos Blockchain Transit
    • How to join CyberWay for those who are interested in being validators ?
    • Stake Usage Guide
    • Regulations for CyberWay validators. Voting for Validators
Powered by GitBook
On this page
  • About an account
  • Create Test Accounts
  • Public Key
  • Troubleshooting
  1. DEVELOPMENT ENVIRONMENT

5 Create Test Accounts

Previous4 Start keosd and nodeosNextSOFTWARE MANUALS

Last updated 5 years ago

This section provides guidance on how to create an account name using a public key.

About an account

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 by group of individuals depending on how permissions have been configured. An account is required to send or receive a valid transaction to the blockchain.

This tutorial series uses two "user" accounts, bob and alice, as well as the default cyberway account for configuration. Additionally accounts are made for various contracts throughout this tutorial series.

Create Test Accounts

Public Key Persistence In section , you created a development key pair and pasted the public key in the Development Public Key field for the value to persist throughout the tutorial.

In the following steps, if you see YOUR_PUBLIC_KEY instead of the public key value, you can either go back to section and persist the value or replace YOUR_PUBLIC_KEY with the public key value manually.

Throughout these tutorials the accounts bob and alice are used. Create two accounts using cleos create account:

cleos create account cyberway bob YOUR_PUBLIC_KEY
cleos create account cyberway alice YOUR_PUBLIC_KEY

For each command that confirms that the transaction has been broadcast, you should see a confirmation message similar to the following:

executed transaction: 40c605006de...  200 bytes  153 us
#         cyberway <= cyberway::newaccount            {"creator":"cyberway","name":"alice","owner":{"threshold":1,"keys":[{"key":"EOS5rti4LTL53xptjgQBXv9HxyU...
warning: transaction executed locally, but may not be confirmed by the network yet    ]

Public Key

Note in cleos command a public key is associated with account alice. Each CyberWay 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 CyberWay account.

Check which public key is associated with alice using cleos get account:

cleos get account alice

You should see a message similar to the following:

permissions:
     owner     1:    1 GLS6MRyAjQq8ud7h...HuGYqET5GDW5CV
     active    1:    1 GLS6MRyAjQq8u...8BhtHuGYqET5GDW5CV
memory:
     quota:       unlimited  used:      3.758 KiB

net bandwidth:
     used:               unlimited
     available:          unlimited
     limit:              unlimited

cpu bandwidth:
     used:               unlimited
     available:          unlimited
     limit:              unlimited

Notice that actually alice has both owner and active public keys. CyberWay 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 an 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:

cleos wallet list

You should see an asterisk (*) next to the wallet name like this one:

Wallets:
[
  "default *"
]
Create Development Wallet
Create Development Wallet