Creates a log that signs with a device identity.
The identity whose signature each record will carry.
Optionallast: audit.AuditEntry
The final record of an existing log to carry on from, or omitted to start empty.
Appends a payload, signing it and chaining it onto the last record.
The record to store.
The new entry.
StaticresumeCreates a log that carries on from the last record an earlier one wrote.
This is what a device does after a restart: the chain continues at the next index and hashes onto the record it left off at, so a reboot leaves no gap for a record to be removed through.
The identity whose signature each record will carry.
The final record of the existing log.
A log that signs what it is given and chains it onto what came before.