Every ledger has a ledger header. This header has references to the actual data within the ledger as well as a reference to the previous ledger. References here are cryptographic hashes of the content being referenced–the hashes behave like pointers in typical data structures but with added security guarantees.
You can think of the historical ledger chain as a linked list of ledger headers:
[Genesis] <---- [LedgerHeader_1] <----- … <---- [LedgerHeader_n]
See the protocol file for the object definitions.
Every ledger header has the following fields:
The ledger is a collection of entries. Currently there are 4 types of ledger entries.
This entry represents an account. In HC Net, everything is built around accounts: transactions are performed by accounts, and accounts control the access rights to balances.
Other entries are add-ons, owned by a main account entry. With every new entry attached to the account, the minimum balance in HCX goes up for the account. For details, see fees and minimum balance.
Trustlines are lines of credit the account has given a particular issuer in a specific currency.
Trustline entries define the rules around the use of this currency. Rules can be defined by the user–e.g., setting a balance limit to limit risk–or by the issuer–e.g., an authorized flag.
Offers are entries that an account creates in the orderbook. They are a way to automate simple trading inside the HC Net. For more on offers, refer to the decentralized exchange documentation.
Data entries are key value pairs attached to an account. They allow account controllers to attach arbitrary data to their account. It provides a flexible extension point to add application specific data into the ledger.
*Powered by HashCash