Skip to content

Account

capt4ce edited this page Sep 20, 2019 · 8 revisions

Account

  • Account Address (Zoobc Account)

    Account in Zoobc is stored in the following structure

    No field type
    1 account_address string
    2 block_height integer
    3 spendable_balance integer
    4 balance integer
    5 pop_revenue integer
    6 latest boolean

    Account address is the base64.Encoded string from the public_key + public_key_checksum

    rawAddress := public_key.append(public_key_checksum)
    address = base64.Encode(raw_address)
    
    *: public_key length is 32 bytes
    **: public_key_checksum length is 1 byte, which make the,
    ***: raw_address = 33 bytes
    
  • Account Creation

    New account is created in the account_balance table when:

    • An account receive a payment (SendMoney) transaction from existing user.
    • An account created in genesis transactions, which mean the account is included in the genesis fund receiver (hardcoded). In this case the account balance will be zero because token distribution is achieved via coinbase and not at genesis as in POS blockchains
  • Others

Clone this wiki locally