Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalizeDefinition ¶
func CanonicalizeDefinition(in spec.CanonicalDefinition) (spec.CanonicalDefinition, error)
CanonicalizeDefinition normalizes portable JSON fields and calculates the digest of the immutable definition envelope. A supplied non-empty digest must match the calculated value.
func CanonicalizeJSON ¶
CanonicalizeJSON returns deterministic JSON bytes. Objects are ordered by UTF-8 key order, arrays retain their input order, duplicate object keys are rejected, and JSON numbers are normalized as exact decimal values without passing through IEEE-754 binary64. This is a stable Artifact Store encoding, not a claim of general-purpose JCS conformance.
func DigestBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.