Discover Packages
github.com/hadron-memory/hadron-cli
internal
approvalhash
package
Version:
v0.21.0
Opens a new window with list of versions in this module.
Published: Oct 12, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package approvalhash implements the server's versioned approval hash for a
node's reader-visible title, abstract, and content (server #1591).
Canonical returns the exact v1 bytes hashed by hadron-server. The field
order and length-prefixed format are a wire contract; a change needs a new
version rather than an edit to this serializer.
Hash is the full lowercase hexadecimal SHA-256 of Canonical(fields).
Fields are the three values covered by an approval. Title is Node.name.
A nil pointer is distinct from a pointer to the empty string.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.