Skip to main content

Module ledger

Module ledger 

Source
Expand description

The ledger header and its hash.

The ledger hash, which is what validators sign, is SHA-512Half(LWR\0, header). The header pins the roots of two trees (transactions and state) and links to the previous ledger through the parent hash. So from a confirmed ledger hash you can reach both its transactions and earlier ledgers.

Header serialization, all numbers big-endian, 118 bytes: sequence (4), total drops (8), parent hash (32), transaction root (32), state root (32), parent close time (4), close time (4), close time resolution (1), close flags (1).

Structs§

LedgerHeader

Constants§

HEADER_LEN