buildcompat

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package buildcompat exposes the source-owned declaration embedded at build time. Embedded claims are never release signature authority.

Index

Constants

View Source
const DevelopmentCommit = "0000000000000000000000000000000000000000"
View Source
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.

Jump to

Keyboard shortcuts

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