bundlekey

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 4 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 bundlekey is how the operator and the engines name and exchange the public keys that bundles are signed with (0004 §4.6). A key file holds one or more raw 32-byte ed25519 public keys, concatenated: the trust ConfigMap's trusted-keys.pub carries every key an engine accepts while the signing key rotates, and a single key is the same format as ed25519.pub.

Index

Constants

View Source
const MaxKeys = 8

MaxKeys bounds a key file: during a rotation two keys are trusted.

Variables

This section is empty.

Functions

func Format

func Format(keys ...ed25519.PublicKey) []byte

Format writes a key file.

func ID

func ID(pub ed25519.PublicKey) string

ID returns the key ID of pub, as in SignedBundle.key_id: the first 8 bytes of its SHA-256, in hex.

func Parse

func Parse(data []byte) ([]ed25519.PublicKey, error)

Parse reads a key file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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