seal

Adds prev and hash to each record in order; returns the records and the head hash.