Documentation
¶
Overview ¶
Package buildcompat exposes the source-owned declaration embedded at build time. Embedded claims are never release signature authority.
Index ¶
Constants ¶
const DevelopmentCommit = "0000000000000000000000000000000000000000"
const DevelopmentVersion = "0.0.0+local.dev"
Variables ¶
This section is empty.
Functions ¶
func Current ¶
func Current() ([]byte, upgradecompat.Declaration, error)
func Development ¶
func Development() ([]byte, upgradecompat.Declaration, error)
Development returns source-owned build claims for the separately isolated local-development datastore domain. The zero commit is an explicit synthetic identity, never a statement that this is a Git release. It grants no trust.
func ProductionTrust ¶
func ProductionTrust() (releasetrust.PinnedTrust, error)
ProductionTrust returns defensive decoded copies of the build's pinned root and recovery key. Custom builds may explicitly stamp their own trust at build time. Unstamped binaries refuse production admission.
func Verify ¶
func Verify(node upgradecompat.VerifiedNode) error
Verify binds an independently authenticated target to this binary's exact source declaration. The platform payload remains separately authenticated.
func VerifyDevelopment ¶
func VerifyDevelopment(node upgradecompat.VerifiedNode) error
VerifyDevelopment requires a real verified envelope from the independently isolated development custody. The caller must enforce that trust domain; production always calls Verify and never selects this method via evidence.
Types ¶
This section is empty.