Module solana::entry[][src]

The entry module is a fundamental building block of Proof of History. It contains a unique ID that is the hash of the Entry before it, plus the hash of the transactions within it. Entries cannot be reordered, and its field num_hashes represents an approximate amount of time since the last Entry was created.

Structs

Entry

Each Entry contains three pieces of data. The num_hashes field is the number of hashes performed since the previous entry. The id field is the result of hashing id from the previous entry num_hashes times. The transactions field points to Transactions that took place shortly before id was generated.

Functions

next_entry

Creates the next Tick or Transaction Entry num_hashes after start_hash.