installersig

package
v0.4.136 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package installersig checks the Ed25519 signature of an installer script and reads the release the script announces.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadSignature = errors.New("installer signature is not valid")
	ErrNoTag        = errors.New("installer announces no valid release tag")
)
View Source
var Keys = decodeKeys(keyA, keyB)

Keys holds the public keys accepted for installer signatures.

Functions

func Newer

func Newer(a, b string) bool

Newer reports whether tag a is a higher vX.Y.Z than b. An invalid tag on either side gives false.

func ReleaseTag

func ReleaseTag(script []byte) (string, error)

ReleaseTag returns the vX.Y.Z value of the script's CASAOS_INSTALL_RELEASE_TAG line. Placeholders, absent lines and lines with different values give ErrNoTag.

func Verify

func Verify(script, sigBase64 []byte, keys []ed25519.PublicKey) error

Verify checks that sigBase64 (one line of standard base64 of a raw Ed25519 signature) signs script under at least one of keys.

Types

This section is empty.

Jump to

Keyboard shortcuts

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