Accounts

Blockchain addresses and type of accounts.

Accounts

Accounts are concerned with the transfer of ownership of assets and maintaining a record of transactions. An account in the SGE Network chain designates a pair of public keys and private keys.

Addresses

Each account is identified using Address which is a sequence of bytes derived from a public key. Taking inferences from the Cosmos SDK, the SGE Network chain also has three types of addresses:

  1. Account Addresses

    • Representation: starts with sge1

    • These addresses identify the user or the sender of a message.

  2. Validator Addresses

    • Representation: starts with sgeval1

    • These addresses identify the validators.

  3. Cons Validator Addresses

    • Representation: starts with sgeconsval1

    • These addresses identify the validator nodes who participate in the consensus.

Module Accounts

A module account is a special type of account that belongs to a specific module. A module account is identified by its name and account address only. There is no mention of the private key of a module account, hence, no one can directly transfer tokens from the module accounts. Transfer of tokens from and to the module accounts can be done only via code in the SGE Network chain.

The address of the module account remains the same until changed programmatically. A module can have more than one module account.

Last updated