Help us shape the future of Go! Take the 2026 Go Developer Survey

identity

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package identity provides content-identity hashing shared across skillet tools. The hash is byte-identical to SkillOpt's skill_hash and to the skill.Hash used by exegesis and skillsaw, so a given artifact has the same identity in every tool and hash-pinned manifests cross-check cleanly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(content string) string

Hash returns the first 16 hex characters of the SHA-256 digest of content.

The 16-character (64-bit) prefix is a deliberate, frozen contract: it matches SkillOpt's skill_hash (skillopt/utils/scoring.py) and the identity used to cache evaluations and detect no-op edits. Do not change the algorithm or the prefix length without migrating every stored hash.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL