Chain

object Chain(source)

The hash chain over observation records. An entry's hash covers the previous hash and the canonical content (the record without its prev and hash fields).

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun link(prev: String, content: JsonObject): String
Link copied to clipboard

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