Module silk::log [] [src]

The log crate provides the foundational data structures for Proof-of-History, an ordered log of events in time.

Structs

Entry

Enums

Event

When 'event' is Tick, the event represents a simple clock tick, and exists for the sole purpose of improving the performance of event log verification. A tick can be generated in 'num_hashes' hashes and verified in 'num_hashes' hashes. By logging a hash alongside the tick, each tick and be verified in parallel using the 'end_hash' of the preceding tick to seed its hashing.

Functions

create_ticks

Create a vector of Ticks of length 'len' from 'start_hash' hash and 'num_hashes'.

extend_and_hash

Return the hash of the given hash extended with the given value.

hash

Return a Sha256 hash for the given data.

hash_event
next_entry

Creates the next Tick Entry 'num_hashes' after 'start_hash'.

next_hash
next_tick

Creates the next Tick Entry 'num_hashes' after 'start_hash'.

sign_hash

Return a Claim Event for the given hash and key-pair.

verify_signature

Verify a signed message with the given public key.

verify_slice

Verifies the hashes and counts of a slice of events are all consistent.

verify_slice_seq

Verifies the hashes and events serially. Exists only for reference.

Type Definitions

PublicKey
Sha256Hash
Signature