reprobuild

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package reprobuild verifies that the release wasm build is reproducible: two independent builds of the same commit must produce byte-identical artifacts (the provenance attestation implicitly promises this). The `-trimpath` flag the release profile sets is what makes the output path-independent and thus deterministic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildWasmSHA

func BuildWasmSHA(parseRepoRoot string, parsePackage string, parseTempDir string) (string, error)

BuildWasmSHA builds parsePackage for js/wasm with the release flags (-trimpath -ldflags "-s -w") into a throwaway file under parseTempDir and returns the lowercase hex SHA-256 of the resulting artifact.

func SHAMatches

func SHAMatches(parseA string, parseB string) bool

SHAMatches reports whether two artifact digests are identical. It is the comparison the reproducibility check uses; a single differing byte (for example an embedded build timestamp) yields different digests and a false result, so nondeterminism is caught rather than silently accepted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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