Documentation
¶
Overview ¶
Package patternidentity defines bounded Pattern identity and a fixed hash domain only. It does not parse JSON, verify sources or depend on execution.
Index ¶
Constants ¶
const ExecutionDomain = "nb1-pattern-execution/experimental-v1"
const RecordContract = "nb1-pattern-record/experimental-v2"
Variables ¶
var ErrInvalid = errors.New("invalid pattern identity")
Functions ¶
func HashExecutionCanonical ¶
HashExecutionCanonical hashes the given bytes after exactly one domain LF. It intentionally does not validate that bytes are canonical, trusted or even JSON. Callers must establish those properties; this is not a verifier.
func ValidateDigest ¶
ValidateDigest checks the shared revision/execution SHA spelling only. A syntactically valid digest does not prove source integrity or admission.