Skip to contents

A SHA-256 over the canonical serialization. Any edit to any definition, rule, or example changes the hash; the hash is recorded in locked protocols and reports, which is what makes "we used codebook v1.2" verifiable rather than aspirational.

Usage

codebook_hash(x)

Arguments

x

A codebook().

Value

A character scalar (64 hex digits).

Examples

cb <- codebook("tone", "one sentence", list(
  cb_category("positive", "Approving or hopeful."),
  cb_category("negative", "Critical or alarmed.")))
codebook_hash(cb)