Skip to main content

Module xrpla

Module xrpla 

Source
Expand description

Reader for the XRPLA publication, a source of full mainnet history.

The publication is a signed catalog (Ed25519, publisher key pinned on our side) listing ledger ranges in XRPP containers. A container is a directory, XRPH segments and a transaction index, each part with its own SHA-256. An XRPH v2 segment holds up to 4096 ledgers in pages of 64: a shared segment dictionary (field headers; values; hashes with computation recipes; “atoms”, each a field with a value; “shapes”, each an object’s set of fields), then for each page a transaction section and a metadata section with object changes. Metadata and objects are stored as “views”: only the fields that changed since the previous version of the same object on the page.

The format was read from the public XRPLA documentation and code (tools/history_codec.py, tools/xrpp.py, MIT; commit 24cb947); we don’t run their code. The publication doesn’t have to be trusted: every page is checked against the digest of its canonical bytes, every ledger against the transaction root and the parent chain, every range against the hash in the signed catalog; state roots are checked when the changes are replayed.

Structs§

Directory
XRPP container directory: range, hashes and segments.
Segment
XRPH v2 segment.

Functions§

sha256